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.

Archive

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

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

Show in search off


Reply

3 Posts   1207 Views

Avatar
corkg

15 July 2008 at 7:06am Community Member, 30 Posts

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

Avatar
simon_w

15 July 2008 at 7:20am (Last edited: 15 July 2008 7:20am), Forum Moderator, 474 Posts

In your ShopPage class type:

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

Avatar
corkg

15 July 2008 at 7:24am Community Member, 30 Posts

Thanks

Worked like a dream