Search Result gives a system-message

Search Result gives a system-message was created by patsyh

Hi I have a number of articles in the classified directory and they show up on the page if selected (view image one)... However when no article can be found the Classified page is removed and replaced with a system message saying 'No item found' (view image two)... is it possible for the 'No items found ' message to be placed where an article would have been, (view image three)... instead of the message replacing the whole page.

I have put examples for you to understand my query:
- image one is showing search results... all is fine
- image two is what happens if no items are found
- image three is how I would like to see the page work
6 years 8 months ago#2108

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

Replied by Super User on topic Search Result gives a system-message

Hi,

We can't able to see any images in your post.

Thanks.
6 years 8 months ago#2111

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

Replied by patsyh on topic Search Result gives a system-message

Sorry about that... all three images can be viewed here:
www.africancaribbeanweddings.com/Classified-layout/
6 years 8 months ago#2127

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

Replied by Super User on topic Search Result gives a system-message

We got it and i will pass this to our product management team.They will analyse and add this feature in our future version.

Thanks.
6 years 8 months ago#2134

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

Replied by patsyh on topic Search Result gives a system-message

That's great! However in addition to adding this feature to a future version, will you be amending this issue for me?
6 years 8 months ago#2142

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

Replied by Super User on topic Search Result gives a system-message

Kindly open the view.html.php file from the below path

Root--> components--> com_jomclassifieds--> views--> search--> view.html.php

In this file search the code,
if(!$items) {
$msg = JText::_('ITEM_NOT_FOUND');JError::raiseNotice( 100, $msg );return;}

And edit the code as below,
if(!$items) {$msg = JText::_('ITEM_NOT_FOUND');echo $msg;return;}

And finally cut and paste the above code after the below code.
$this->addTemplatePath( JOMCLASSIFIEDS_COMMON_TMPL );parent::display($model->filter_view);

That's it. Save the file and check your front-end.

Thanks.
6 years 8 months ago#2148

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

Time to create page: 0.160 seconds

Contact us

  No.2/A, Venkateshwara Nagar,
1st Main Road, 100 Feet Road, SBM Towers, Velachery,Chennai - 600 042,India.
 admin@jomclassifieds.com
 skype.jomclassifieds
Copyright © 2013-2020 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.