Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » HasManyCTF in widget

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1338 Views
  • marcink
    Avatar
    Community Member
    89 Posts

    HasManyCTF in widget Link to this post

    hi all,

    thanks for the support so far!

    one more question, of many to follow:

    is it possible to add a HMCTF in a widget?

    usually in the getCMSFields_forPopup you have code like this:

    $fields->addFieldToTab( 'Root.Content.FlashObject', $tablefield );


    but how to apply this for a widget?

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: HasManyCTF in widget Link to this post

    I would doubt that the widgets can support complextable fields. If you do it like you currently do does anything happen? any errors at all ?

  • marcink
    Avatar
    Community Member
    89 Posts

    Re: HasManyCTF in widget Link to this post

    i didn't check yet, because i don't know, where i should add the HMCTF to...

    any idea?

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: HasManyCTF in widget Link to this post

    for a widget?

    You just define a getCMSFields() function in your widget class.

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