Tabbed Subpages
Category: Layout and presentation
—
Other products by this author
Current release
No stable release available yet.
Experimental releases
Upcoming and alpha/beta/candidate releases
- Alpha releases should only be used for testing and development.
- Beta releases and Release Candidates are normally released for production testing, but should not be used on mission-critical sites.
- Always install on a separate test server first, and make sure you have proper backups before installing.
Project Description
- Project resources
The idea of TabbedSubpages is that of a document, which -- in addition to optional document contents (title, description, body) -- allows for the aggregation of other documents ("subpages"). These documents (which can be
anywhere on the site, they are referenced by UID) are then rendered one after the other, following the main document contents. In addition, a tab bar is created and some CSS/JavaScript put in place, such that on JS-enabled browsers, only the first subpage is shown after the page loaded, and the tabs can be used to switch to the other pages.
For non-JS-enabled browsers, all contents is shown and the tabs jump to the appropriate parts of the document.
It's pretty much plug and play. Install, create a "Tabbed Subpages" object, add some references to it via the edit dialog, and view.
By default, the subpage's title is used for the subpage heading as well as the tab label. You can append a pipe symbol ('|') followed by a short name to the subpage's title to use the short name for the tab.
I suggest *not* to workflow-publish the subpage objects to make them not searchable.
Contributors
- Martin F. Krafft (original author)
- Malthe Borch