Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » SS3: Metadata like dropdowns in CMS

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: 474 Views
  • Johan
    Avatar
    Community Member
    49 Posts

    SS3: Metadata like dropdowns in CMS Link to this post

    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?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: SS3: Metadata like dropdowns in CMS Link to this post

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

  • Johan
    Avatar
    Community Member
    49 Posts

    Re: SS3: Metadata like dropdowns in CMS Link to this post

    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?

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