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 /

Tabbed Content


Reply


2 Posts   619 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, 5513 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.