heimrichhannot / contao-tab-control-bundle
Adds tabs content elements to contao.
Installs: 2 012
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 2
Open Issues: 2
Type:contao-bundle
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.9
- heimrichhannot/contao-encore-contracts: ^1.0
- heimrichhannot/contao-utils-bundle: ^2.192 || ^3.3
Suggests
- heimrichhannot/contao-encore-bundle: Advanced integration of symfony webpack encore in contao.
README
This Bundle brings Bootstrap 5 Tabs to Contao.
Features
- adds 3 new content elements: Start, Separator, Stop
- has the option to store last open tab in session (sessionStorage)
- migration command for migration from contao-legacy/fry_accessible_tabs
- Encore Bundle support
Install
- Install with composer:
composer require heimrichhannot/contao-tab-control-bundle
. - Update the database.
Installation with Encore bundle
- Run the symfony command
encore:prepare
andyarn encore [dev|prod]
(you don't need to activate the entry manually if you use encore bundle version >= 1.3).
Installation without Encore bundle
- Make sure bootstrap (js and style) is included in your project setup since it doesn't come with this bundle to avoid duplicate code.
Usage
- This bundle brings three new content elements. To set up a tab section, choose the tab start element.
- For each new tab add a tab separator element. The tab names are set in the tab start and the tab separator elements.
- In the end add the tab stop element to wrap it up.
Commands
huh:tabcontrol:migrate
: Provide migration from contao-legacy/fry_accessible_tabs and older bundle version. See huh:tabcontrol:migrate --help
for options.