Hi,
I want to enable search on a silverstripe site. What is the best way to do that? I tried googling a bit, and found some information about a SilverStripe Search module, but I can't find it.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi,
I want to enable search on a silverstripe site. What is the best way to do that? I tried googling a bit, and found some information about a SilverStripe Search module, but I can't find it.
There's a Google search widget.
http://silverstripe.com/google-custom-search-widget/
That might help you.
There is no module, at least I don't think, so you have to follow the tutorial - http://doc.silverstripe.com/doku.php?id=tutorial:4-site-search
Looks like a lot of work, but it's not. Mainly just copy and pasting things. You can search the docs for more info on making a bit more advance if need be.
I also believe in the future it will come bundled with SS.
Thanks for the suggestions! I guess I can use the site search from the tutorial to start with.
I'm going to build a site where users must log on for additional access, and I want that to be searchable as well. By the same token, users that aren't logged in shouldn't be able to search content they don't have access to. What would be the correct way to do that? Filter relevant results out from $form->getResults() before displaying anything?
Most likely, yes.
This page helps describe how to limit search results in the section near the bottom - http://doc.silverstripe.com/doku.php?id=recipes:simplesearch
Might be a good start.
Hi All ,
I m trying for search from tutorial 4 but it unable to show me any search , not even displaying me any html content on header from Page.ss
please suggest me to execute search stuff.
Thanking you.