Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » select form in CMS

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

Page: 1 2
Go to End
Author Topic: 1553 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: select form in CMS Link to this post

    You're still missing something, here. I'm not sure why you're trying to create a relationship to SiteTree. All Pages are related to SiteTree by virtue of inheritance.

    It's working right now because you're only asking for the $Title property, which is part of the SiteTree, but if your SeeAlso field is a TourPage, then you should really set up the relationship as such so you can access the unique properties of the TourPage, as well.

    You should never have to set up any relationships to SiteTree. That just.. doesn't make sense.

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: select form in CMS Link to this post

    Setting up a relationship to SiteTree actually makes perfect sense - sometimes you need to provide information about a remote page without hardcoding the URLSegment into the template. Also, thanks to the ORM you can also access any extra fields on subclasses of the relationship (TourPage) without having to specify it manually.

    1553 Views
Page: 1 2
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.