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.

Customising the CMS /

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

How to show TabSets names of a FieldSet?


Go to End


2 Posts   1727 Views

Avatar
mydanceland.com

Community Member, 2 Posts

4 August 2010 at 3:02am

Hello all!

I have a FieldSet and I need to know what Tabs it has. I looked for methods like getTabSets or getTabs but I didn'd find anything :(
Would you mind to help me to get names of Tabs of another Set if it has them?
I mean if I have Content.Main, Content.Metadata etc I will get "Main", "Metadata"...

Thank you

Avatar
TotalNet

Community Member, 181 Posts

4 August 2010 at 10:45am

Have a look here:
http://api.silverstripe.org/2.4/forms/fields-structural/TabSet.html

There are a couple of promising sounding functions: getTabSet() although I can't find one example of it being used, and FieldHolder says it returns an html representation although you'll probably want to clear the requirements first!

hth