Jump to:

23486 Posts in 18995 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » HasOneComplexTableField

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 405 Views
  • Phill
    Community Member
    75 Posts

    HasOneComplexTableField Link to this post


    Im trying to use a HasOneComplexTableField to manage the relationship between a page and a dataobject, below is the code im using to add the field to page. When i use the add button it adds it to the table but its not selected by default, i have to check the radio button to link it to the page. Is there anyway to automatically link the dataobject to the age without having to click the radio button?

    $ctf = new HasOneComplexTableField(

  • martimiz
    Forum Moderator
    1086 Posts

    Re: HasOneComplexTableField Link to this post

    The basic ComplexTableField will automatically add all created objects to the page it's on... The hasone version shows all available objects, then lets you select the ones you want to add to the page...

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.