Welcome, Guest
Username Password: Remember me

[SOLVED] Message when no results found
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [SOLVED] Message when no results found

[SOLVED] Message when no results found 1 year, 11 months ago #1

  • jafeth
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 0
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
Last Edit: 1 year, 10 months ago by gobezu.

Re:Message when no results found 1 year, 11 months ago #2

  • SEBLOD - Bes
  • ( Admin )
  • OFFLINE
  • Administrator
  • Working on SEBLOD 2.0 GA
  • Posts: 3124
  • Karma: 97
Hi jafeth,

Thanks for your post.

Do you speak about content search?

Best Regards.
If you use SEBLOD CCK, please post a rating and a review at the Joomla! Extensions Directory. Thanks to you.!!"
SEBLOD Vimeo Channel: vimeo.com/channels/seblod
SHAPE YOUR SITE YOUR WAY

Re:Message when no results found 1 year, 11 months ago #3

  • jafeth
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 0
Hi Bes,

I mean about results of Search Form in Search Layout.

Re:Message when no results found 1 year, 11 months ago #4

  • jafeth
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 0
Does anybody know how to set info about none results???

Re:Message when no results found 1 year, 11 months ago #5

  • gobezu
  • ( User )
  • OFFLINE
  • Moderator
  • Posts: 205
  • Karma: 2
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

 
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!
Last Edit: 1 year, 11 months ago by gobezu.

Re:Message when no results found 1 year, 11 months ago #6

  • SEBLOD - Saba
  • ( Admin )
  • OFFLINE
  • Administrator
  • Posts: 929
  • Karma: 38
Hi all,

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

Best regards,
jSeblod - Saba
If you use jSeblod CCK, please post a rating and a review at the Joomla! Extensions Directory. Thanks to you "Innovation Will Continue !!"

Re:Message when no results found 1 year, 11 months ago #7

  • jafeth
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 0
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

Re:Message when no results found 1 year, 11 months ago #8

  • gobezu
  • ( User )
  • OFFLINE
  • Moderator
  • Posts: 205
  • Karma: 2
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!

Re:Message when no results found 1 year, 10 months ago #9

  • jafeth
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 0
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

Re:Message when no results found 1 year, 10 months ago #10

  • gobezu
  • ( User )
  • OFFLINE
  • Moderator
  • Posts: 205
  • Karma: 2
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
  • Page:
  • 1
Time to create page: 0.35 seconds