Jump to:

3375 Posts in 999 Topics by 712 members

Data Model Questions

SilverStripe Forums » Data Model Questions » site search return results from sitetree, needs property of actual page object

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

Page: 1
Go to End
Author Topic: 688 Views
  • Ben_W
    Avatar
    Community Member
    79 Posts

    site search return results from sitetree, needs property of actual page object Link to this post

    I have a implemented the site search, however it seems to me that the search is only searching the sitetree table, mainly the title of the page. in the page result template, I would like to display additional property of the page object, since not all my page object uses 'Content' field, as we all know that any additional field we declared in the page object will be stored in the seperate table and linked with sitetree by ID. For instance, my article page object uses field 'Details' instead of the default 'Content' field, in the search result I can't get $Details.LimitWordCount(50) to work.

    Is there a way to get $Details in the Page_results.ss? if not, is there other better search algorithms available in silverstripe?

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