Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

HasManyCTF in widget


Go to End


4 Posts   1759 Views

Avatar
marcink

Community Member, 89 Posts

25 November 2008 at 6:38am

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?

Avatar
Willr

Forum Moderator, 5523 Posts

26 November 2008 at 7:08pm

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 ?

Avatar
marcink

Community Member, 89 Posts

27 November 2008 at 8:27am

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

any idea?

Avatar
Willr

Forum Moderator, 5523 Posts

27 November 2008 at 9:37am

for a widget?

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