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.

Customising the CMS /

How to show TabSets names of a FieldSet?


Reply


2 Posts   1088 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