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

Tabbed Content


Go to End


2 Posts   1023 Views

Avatar
njprrogers

Community Member, 23 Posts

28 March 2011 at 11:22pm

Hi,

I have a request to create tabbed content which can be content managed by the user through the CMS Admin.

What is the best way to structure this within SilverStripe?

Is it by creating child pages of a page type "tabbed content" or something similar? And then pulling in the pages in the templating layer?

Thanks!

Nick

Avatar
Willr

Forum Moderator, 5523 Posts

29 March 2011 at 11:59pm

If depends on the complexity of your tab content, if you're simply using an Html field then you could add a field to your page type and have multiple html content boxes. Tutorial 2 explains how to add content fields to your page. If you have tons of tabs and more complex fields then pages work well.