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

Show in search off


Go to End
Reply


3 Posts   1425 Views

Avatar
corkg

Community Member, 30 Posts

15 July 2008 at 7:06am

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
(deleted)

Community Member, 473 Posts

15 July 2008 at 7:20am

Edited: 15/07/2008 7:20am

In your ShopPage class type:

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

Avatar
corkg

Community Member, 30 Posts

15 July 2008 at 7:24am

Thanks

Worked like a dream