Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Connect With Other SilverStripe Members /

For all SilverStripe-related topics that don't fit into any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Search


Reply


4 Posts   1004 Views

Avatar
Storm Striker

Community Member, 6 Posts

12 April 2011 at 12:08am

I'm having a problem with the search, I don't know weather the answer for my question exist or not, But my question is :

This is regarding Search in silverstripe all Versions :

Case 1 : The normal function of search : If we enter some query and click search, then the search would obviously search for the answer to the query asked by the user and displays it.

Case 2 : If we enter nothing in the search field and click on the search button, Now the search is listing the entire content from the website.

My Question is : How can we display an error message stating some message. May be " Your search did not match anything in this website " The point is that, I need an error message, when the user doesn't input a query and clicks Search.

Thank You
Storm Striker Sumesh

Avatar
swaiba

Forum Moderator, 1799 Posts

12 April 2011 at 12:26am

Hi Storm Striker,

this isn't really the place to post your question - it's really about people making connections - jobs, meetups, etc.

I'd advise you read over the docs (http://doc.silverstripe.org/sapphire/en/tutorials/4-site-search) and then post in the general questions if still stuck.

Avatar
Storm Striker

Community Member, 6 Posts

19 April 2011 at 11:00pm

Oh Sorry...... :-(

Avatar
swaiba

Forum Moderator, 1799 Posts

19 April 2011 at 11:14pm

no worries - I advise it just to get you an answer asap