Tabbed Page Groups updated for 4.7
At last - I’ve finally got around to modifying the Tabbed Page Groups module for Drupal 4.7. Should work as before, although I have added some additional help documentation.
For those of you who have struggled with getting it going, here are step-by-step instructions:
Install the module file in the modules directory and run the mysql script against your database
Create your first Tabbed Page (Create Content / Tabbed Page). Fill out the page fields as normal, and leave the Group Under Main NodeID field blank. Submit the page.
Note the id of the newly created page (it will be in the page url, after the ‘node/’ part).
Create the Tabbed Page for the next tab. This time, fill in the id you noted (of the first page) in the Group Under Main NodeID field, and chose a weight higher than the first page. Submit the page.
Test the new page - replace the ‘node’ text in the new page’s URL with ‘tabbedpage’ - you should see your page, plus a tab to your other tabbed page.
Use the URL with ‘tabbedpage/X’ instead of ‘node/X’ in all links in your site, so that visitors will browse to the tabbed display of the page, rather than the usual one.
Thanks to Giao Dinh for suggesting the required changes, and to WayGee for chasing me up on this!
| Attachment | Size |
|---|---|
| tabbedpage_4-7.zip | 3.6 KB |


First, let me express my gratitude to you for making this wonderful module available. It is quite useful.
Two comments, however. When I create the main tabbed page node, I leave the “Group Under” field blank, and set the subsequent “Group Under” fields to the node ID of the main tabbed page, as directed. Unfortunately, in my experience, the tabbed pages will not display if I then browse to tabbedpage/NID. If I edit the main node, the “Group Under” field for that node is zero (0); if I change that field to then point back to itself, however, the tabbed pages then work. My impression is that the module is failing to automatically set the “Group Under” field to the same node ID for the main tabbed page.
The second issue is in regards to a warning message that is being generated on each transition from one tab to another. It is returning a “Unknown column ‘tabbedpage’ in ‘where clause’ query: SELECT * FROM url_alias WHERE src = tabbedpage/NID in /…/htdocs/includes/database.mysql.inc on line 120” message each time, but the tabbed pages display correctly. I’m guessing that the error stems from the fact that I’m not using the “create index aliases” option of pathauto, but want to make sure I’m not missing something else. Since I can direct the error to the logfile and not the screen, its more of a concern than an issue.
Thanks again for the great work…
G^2
how would you theme a tabbed page like you would a cck page?
Because the tabs are the same as the ‘built-in’ ones used for editing content, they will pick up any theming designed for those.
So if you provide a style for the CSS class ‘tabs’ - the default HTML that is automatically inserted starts with
<div class="tabs"><ul class="tabs primary">- then that will style the tabs.