Login

flag-uk
SOLUTIONS - DEVELOPER
Home /  Forum
jSeblod™ Forum for joomla!™
Welcome, Guest
Please Login or Register.    Lost Password?
[SOLVED] Message when no results found
(1 viewing) 1 Guest
Go to bottom
TOPIC: [SOLVED] Message when no results found
#4929
jafeth (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Gender: Male joomlacms.pl Location: Poland Birthday: 09/05
[SOLVED] Message when no results found 4 Months, 3 Weeks ago  
Hi,

As in title, I cant find where to set message when no results found. Now i have blank page in this case and i would like to have a some special message.

Regards
 
Logged Logged
 
Last Edit: 2010/03/15 03:29 By gobezu.
  The administrator has disabled public write access.
#4931
jSeblod - Bes (Admin)
Admin
Posts: 1977
graph
User Offline Click here to see the profile of this user
Gender: Male jSeblod Birthday: 03/18
Re:Message when no results found 4 Months, 3 Weeks ago  
Hi jafeth,

Thanks for your post.

Do you speak about content search?

Best Regards.
 
Logged Logged
 
If you use jSeblod CCK, please post a rating and a review at the Joomla! Extensions Directory. Thanks to you "Innovation Will Continue !!"
  The administrator has disabled public write access.
#4933
jafeth (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Gender: Male joomlacms.pl Location: Poland Birthday: 09/05
Re:Message when no results found 4 Months, 3 Weeks ago  
Hi Bes,

I mean about results of Search Form in Search Layout.
 
Logged Logged
  The administrator has disabled public write access.
#5122
jafeth (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Gender: Male joomlacms.pl Location: Poland Birthday: 09/05
Re:Message when no results found 4 Months, 3 Weeks ago  
Does anybody know how to set info about none results???
 
Logged Logged
  The administrator has disabled public write access.
#5128
gobezu (Moderator)
Moderator
Posts: 205
graphgraph
User Offline Click here to see the profile of this user
Gender: Male jproven.com Location: Currently in Stockholm/Sweden
Re:Message when no results found 4 Months, 3 Weeks ago  
Good morning to all,

jafeth here is what I have just tested and works

In components\com_cckjseblod\views\search\tmpl\search.php at row#73 you will find an if clause that checks whether there was a result or not present.

What you need to do is down at row #125 load an optional template as follows

1. put the following code as an else clause to existing if clause

Code:


 else {
    echo $this->loadTemplate('noresults');
}



2. create a file in the same folder mentioned above called search_noresults.php and put in place the content you want to convey to your users when no result is present

and this should do it.

Note: when upgrading you might loose this adjustments and therefore are to be considered as a hack but will definitely do what you asked for.

Further it works in both content and list templates cases.

Edit: forgot to mention at last but not least, there is forum posting rules here that we all should try to follow.

Good luck!
 
Logged Logged
 
Last Edit: 2010/03/11 04:35 By gobezu.
  The administrator has disabled public write access.
#5131
jSeblod - Saba (Admin)
Administrator
Posts: 720
graphgraph
User Offline Click here to see the profile of this user
Gender: Male http://sebastien.heraud.me/ Location: Shanghai Birthday: 03/29
Re:Message when no results found 4 Months, 3 Weeks ago  
Hi all,

This has already been implemented & added into the coming package.

Best regards,
jSeblod - Saba
 
Logged Logged
 
If you use jSeblod CCK, please post a rating and a review at the Joomla! Extensions Directory. Thanks to you "Innovation Will Continue !!"
  The administrator has disabled public write access.
#5155
jafeth (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Gender: Male joomlacms.pl Location: Poland Birthday: 09/05
Re:Message when no results found 4 Months, 3 Weeks ago  
Hi for all,

Thank You a lot Gobezu for you solution,
I try to use it before next package.

BTW, did I broke any posting rule?

Best regards
 
Logged Logged
  The administrator has disabled public write access.
#5158
gobezu (Moderator)
Moderator
Posts: 205
graphgraph
User Offline Click here to see the profile of this user
Gender: Male jproven.com Location: Currently in Stockholm/Sweden
Re:Message when no results found 4 Months, 3 Weeks ago  
Hi jafeth,

Hope it will work for you, but please do take note of what Saba stated and if you can wait until the release fine, if not give it a try, and if you hit on anything let us know.

As for the forum rules, the common courtesy of an opening salute and equally depart on a similar pleasant note.

Cheers!
 
Logged Logged
  The administrator has disabled public write access.
#5269
jafeth (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Gender: Male joomlacms.pl Location: Poland Birthday: 09/05
Re:Message when no results found 4 Months, 2 Weeks ago  
Hi Gobezu,

I couldnt wait for new version, so I modified as You wrote and now works ok. Thank You once more and You can set topic as Solved.

Regards
Jafeth
 
Logged Logged
  The administrator has disabled public write access.
#6235
gobezu (Moderator)
Moderator
Posts: 205
graphgraph
User Offline Click here to see the profile of this user
Gender: Male jproven.com Location: Currently in Stockholm/Sweden
Re:Message when no results found 3 Months, 3 Weeks ago  
Hi Saba,

Sorry for waking alive a SOLVED thread, but I tried to figure out how to actually post a "No result" message and could just not figure it out. Was it part of the current release or is upcoming one?

Thanks
/Gobezu
 
Logged Logged
  The administrator has disabled public write access.
Go to top
Copyright © 2008-2009 Seblod. All rights reserved.

Login On jSeblod CCK website



S5 Register



*
*
*
*
*

Fields marked with an asterisk (*) are required.