Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Missing Add-button in getCMSFields_forPopup

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: 335 Views
  • esakrielaart
    Community Member
    56 Posts

    Missing Add-button in getCMSFields_forPopup Link to this post

    (Also see: http://www.silverstripe.org/general-questions/show/15576; same problem)


    I have an ArticleHolder/ArticleContent DataObject which contains certain data. Also I have an InvoicePersonal, InvoiceHolder and InvoiceContent class, which respectively contain personal details, packages and package content. Last two both refer to the Article Dataobjects.

    The relation between them are all one_to_many, so one InvoiceHolder contains many ArticleHolders, one InvoiceHolder contains many InvoiceContents which on turn contains one ArticleContent per row.

    Now I can add all InvoiceHolder stuff, but than I get an popup where I can edit the InvoiceContent of an InvoiceHolder. This unfortunatelly does not show an Add-button.

    I think I have to define a complex table field myself, based on the URL posted above, I only do not know exactly where or how. ny help for this will be appreceated.

    Thanks in advance,

  • martimiz
    Forum Moderator
    1078 Posts

    Re: Missing Add-button in getCMSFields_forPopup Link to this post

    I don't think you can add a ComplexTableField to another CTF's popup, unless it's read-only. Otherwise you'd have to call a popup on top of another popup, involving lot's of Ajax requests on top of each other...

    For these types of relation chains, the way to go would probably be ModelAdmin...

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.