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.

General Questions /

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

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

SS3: Metadata like dropdowns in CMS


Go to End


3 Posts   1668 Views

Avatar
Johan

Community Member, 49 Posts

24 October 2012 at 2:04am

Edited: 24/10/2012 2:07am

Hi all

I love the metadata drop down, but how do I create my own or how do I move its position?

I presume this is the reason I can not add tabs to a CustomSiteConfig because these drop downs are the way forward?

Avatar
Willr

Forum Moderator, 5523 Posts

24 October 2012 at 8:16pm

You can add tabs fine. The metadata accordion is a special field (ToggleCompositeField - http://api.silverstripe.org/2.4/forms/fields-structural/ToggleCompositeField.html)

Avatar
Johan

Community Member, 49 Posts

24 October 2012 at 9:26pm

Edited: 24/10/2012 9:29pm

Thank you for the ToggleCompositeField.

I am sure tabs do not work in a CustomSiteConfig as I have copied and pasted the syntax. so I had this working input:

$fields->addFieldToTab("Root.Main", new TextField("FooterTitle1", "Title First"));

And change the "Main" to the tab name...

$fields->addFieldToTab("Root.Footer", new TextField("FooterTitle1", "Title First"));

...brings up no tab (and no error). Should I report this as a bug?