- Posts: 39
COMMUNITY FORUM
K2 TOOLS
- andrea
- Topic Author
- Offline
- Junior Member
Less
More
11 years 8 months ago #109165
by andrea
K2 TOOLS was created by andrea
hi guys, it's possibile show a message when i search with module K2_TOOLS ?
Example, i would like show "no results" when somebody search something and don't found nothing...
Somebody can help me?
A.
best regards
Example, i would like show "no results" when somebody search something and don't found nothing...
Somebody can help me?
A.
best regards
Please Log in or Create an account to join the conversation.
- andrea
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 39
11 years 8 months ago #109166
by andrea
Replied by andrea on topic Re: K2 TOOLS
anybody can help me?
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
11 years 8 months ago #109167
by william white
Replied by william white on topic Re: K2 TOOLS
take a look at components/com_k2/templates/generic_search.php
starts out something like
starts out something like
mabee and else statement in that block of code would do the trick?php if(count($this->items)): ?>
Please Log in or Create an account to join the conversation.
- andrea
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 39
11 years 8 months ago #109168
by andrea
Replied by andrea on topic Re: K2 TOOLS
Hi William thank for answer.
I don't know very well php, can you help me?
I have found the code below:
I don't know very well php, can you help me?
I have found the code below:
Log in or Create an account to join the conversation.
- andrea
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 39
11 years 8 months ago #109169
by andrea
Replied by andrea on topic Re: K2 TOOLS
i try with:
Log in or Create an account to join the conversation.
- jean-philippe
- Offline
- Premium Member
- [email protected]
11 years 8 months ago - 11 years 8 months ago #109170
by jean-philippe
Replied by jean-philippe on topic Re: K2 TOOLS
in your code you miss some </div> ...
do you have try something like that?
do you have try something like that?
Emond, Jean-Philippe
Please Log in or Create an account to join the conversation.
- andrea
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 39
11 years 8 months ago - 11 years 8 months ago #109171
by andrea
Replied by andrea on topic Re: K2 TOOLS
below my code:
Log in or Create an account to join the conversation.
- jean-philippe
- Offline
- Premium Member
- [email protected]
11 years 8 months ago #109172
by jean-philippe
Replied by jean-philippe on topic Re: K2 TOOLS
Hi Andrea,
Just do that :
Just do that :
Emond, Jean-Philippe
Please Log in or Create an account to join the conversation.
- andrea
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 39
11 years 8 months ago #109173
by andrea
Replied by andrea on topic Re: K2 TOOLS
hi philippe, i just insert this before the latest endif:
Log in or Create an account to join the conversation.