Keyword

K2 TOOLS

  • andrea
  • andrea's Avatar Topic Author
  • Offline
  • Junior Member
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

Please Log in or Create an account to join the conversation.

  • andrea
  • andrea's Avatar Topic Author
  • Offline
  • Junior Member
More
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.

More
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

?php if(count($this->items)): ?>

mabee and else statement in that block of code would do the trick

Please Log in or Create an account to join the conversation.

  • andrea
  • andrea's Avatar Topic Author
  • Offline
  • Junior Member
More
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:
Log in  or Create an account to join the conversation.

  • andrea
  • andrea's Avatar Topic Author
  • Offline
  • Junior Member
More
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.

More
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?
					
Emond, Jean-Philippe

Please Log in or Create an account to join the conversation.

  • andrea
  • andrea's Avatar Topic Author
  • Offline
  • Junior Member
More
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.

More
11 years 8 months ago #109172 by jean-philippe
Replied by jean-philippe on topic Re: K2 TOOLS
Hi Andrea,

Just do that :
					
Emond, Jean-Philippe

Please Log in or Create an account to join the conversation.

  • andrea
  • andrea's Avatar Topic Author
  • Offline
  • Junior Member
More
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.