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   1265 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
simon_w

Forum Moderator, 474 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