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.

Migrating a Site to Silverstripe /

What you need to know when migrating your existing site to SilverStripe.

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

Search custom fields in Class which extends from SiteTree


Reply


2 Posts   1071 Views

Avatar
Leon223

Community Member, 10 Posts

4 December 2012 at 4:51am

Edited: 04/12/2012 4:51am

I've got a classes named 'Winkel', the class Winkel extends from Page, which extends from SiteTree.

The class 'Winkel' has a few custom fields like 'email address' and 'Winkel naam'. How can i make sure the silverstripe search engine also searches in my custom fields. I am clueless at the moment.

Thanks in advance.

(wrong forum, can anyone move it?)

Avatar
Ajaxian

Community Member, 8 Posts

4 December 2012 at 5:46pm

Hi,

maybe http://api.silverstripe.org/trunk/framework/model/DataObject.html#var$searchable_fields

SiteTree inherits from DataObject