Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Show in search off

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: 1189 Views
  • corkg
    Avatar
    Community Member
    30 Posts

    Show in search off Link to this post

    Is there a way to script the show in search box off page templates?

    So for instance ShopPage would never be included in the search.

    Thanks

    Gareth

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Show in search off Link to this post

    In your ShopPage class type:

    static $defaults = array('ShowInSearch' => false);

  • corkg
    Avatar
    Community Member
    30 Posts

    Re: Show in search off Link to this post

    Thanks

    Worked like a dream

    1189 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.