- Posts: 14
COMMUNITY FORUM
Empty search result
- Seb
-
Topic Author
- Offline
- New Member
Less
More
10 years 5 months ago #134730
by Seb
Empty search result was created by Seb
Hello,
I never add a response thus it is a translation on this message on the frensh board.
On this website (Joomla 2.5.27 and K2 2.6.8) I use K2 tools for search in the header. The empty result return an emty page. Is it possible to display an message like "Sorry, no result found for your search" ?
Thanks,
Seb
I never add a response thus it is a translation on this message on the frensh board.
On this website (Joomla 2.5.27 and K2 2.6.8) I use K2 tools for search in the header. The empty result return an emty page. Is it possible to display an message like "Sorry, no result found for your search" ?
Thanks,
Seb
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 5 months ago #134733
by Lefteris
Replied by Lefteris on topic Empty search result
Hi. K2 search does display a message when no results are found ( example demo.getk2.org/component/k2/search?searchword=test&categories=&format=html&t=1417453115026&tpl=search ) . If you are talking about Joomla! search ( or Smart Search ) then you probably need to create an override for this.
Please Log in or Create an account to join the conversation.
- Seb
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 14
10 years 5 months ago #134735
by Seb
Hi,
Thanks for answer. I forgot to give the website : www.librairesfrancophones.org/ . I use K2 tools search but no message...
Thanks,
Seb
Replied by Seb on topic Empty search result
Lefteris wrote: K2 search does display a message when no results are found
Hi,
Thanks for answer. I forgot to give the website : www.librairesfrancophones.org/ . I use K2 tools search but no message...
Thanks,
Seb
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 5 months ago #134761
by Krikor Boghossian
Replied by Krikor Boghossian on topic Empty search result
It is possible that your overrides are outdated.
You need to add the message.
Replace the last endif (which checks if there are items) with the following code.
You need to add the message.
Replace the last endif (which checks if there are items) with the following code.
<?php else: ?>
<?php if(!$this->params->get('googleSearch')): ?>
<!-- No results found -->
<div id="genericItemListNothingFound">
<p><?php echo JText::_('K2_NO_RESULTS_FOUND'); ?></p>
</div>
<?php endif; ?>
<?php endif; ?>
Please Log in or Create an account to join the conversation.