Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Site search module

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 3035 Views
  • kf
    Avatar
    Community Member
    3 Posts

    Site search module Link to this post

    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.

  • grilldan
    Avatar
    Community Member
    135 Posts

    Re: Site search module Link to this post

    There's a Google search widget.

    http://silverstripe.com/google-custom-search-widget/

    That might help you.

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Site search module Link to this post

    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.

  • kf
    Avatar
    Community Member
    3 Posts

    Re: Site search module Link to this post

    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?

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Site search module Link to this post

    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.

  • Tareq
    Avatar
    Community Member
    8 Posts

    Re: Site search module Link to this post

    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.

    3035 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.