By wyktor on
Hi,,
Is it possible to split a page content into tabs? I know about QuickTabs but this is not good for my purpose, as I want to have a multiple pages with tabs. Use case scenario is a Product page which has several tabs (Details, Reviews, Options). Is there such solution for D7?
thanks in advance:)
wyktor
Comments
html first.
1) find yourself some nice js/css/html tabs.
2) code it up, make sure it works.
3) in drupal, make a content type for "product".
4) in addition to the "body" of that content, also add cck fields for each tabbed area that you want.
5) in a template for node-product.tpl.php, put in php conditionals that will show the tab(s) if each cck field has content. (if you only populated 2 tabs with content, you don't want 4 tabs showing. You may also want a special case for when only one tab is populated as one lonely tab does not make sense.)
6) test it.
An easier way
You can use the Field Group module to break the fields up into groups and can display the groups as tabs.
Thanks
Thank you both for replies. I'll try the Field Group module:)
wyktor
I try Fieldgroup module, but
I try Fieldgroup module, but without success. I have two group with fieldgroup module and I select horizontal tabs. I only get split node with two link (one above other) like:
example 1
example 2
Anybody help?