laxap / bootstrap-grids
Predefined gridelements Bootstrap 5 content elements: column grids, grids for simple accordions, and tabs.
Installs: 113 243
Dependents: 2
Suggesters: 0
Security: 0
Stars: 10
Watchers: 8
Forks: 39
Language:HTML
Type:typo3-cms-extension
Requires
- php: ^8.1 || ^8.2 || ^8.3 || ^8.4
- gridelementsteam/gridelements: ^12
- typo3/cms-core: ^v12.4
Requires (Dev)
- helhum/typo3-console: ^8.2
- roave/security-advisories: dev-latest
- typo3/cms-filelist: ^12
- typo3/cms-fluid: ^12
- typo3/cms-fluid-styled-content: ^12
- typo3/cms-install: ^12
- typo3/cms-lowlevel: ^12
- typo3/cms-setup: ^12
- typo3/cms-tstemplate: ^12
Replaces
- typo3-ter/bootstrap-grids: 5.0.0
- dev-master
- 5.0.0
- 3.0.0
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.1
- 2.0.0
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.5
- 1.1.4
- dev-readme-updates
- dev-final-fixes
- dev-docker-fixes
- dev-improve-graphics
- dev-additional-locallang-improvements
- dev-47-not-set-in-xscol-is-lost-after-2nd-save
- dev-typo3-v12
- dev-translation-file-update
- dev-typo3-v12-fixes
- dev-option-for-opening-first-accordion-item
- dev-fix-initial-accordion-state
- dev-documentation-contribution
- dev-dev-setup
- dev-introduce-v4.0.0
- dev-v2.0-dev
This package is auto-updated.
Last update: 2025-03-11 20:21:00 UTC
README
Predefined gridelements
Bootstrap 5 content elements: column grids, grids for simple accordions, and tabs.
Installation
- Install the extension via composer:
composer require laxap/bootstrap-grids
. Ifgridelements
is not installed, it will be installed automatically since it's a requirement. - Include the static TypoScript templates. Both
bootstrap_grids
andgridelements
templates are required (the order of templates is important).
NOTE: As of 2025-03-03, gridelements
v12 doesn't support PHP 8.4, but we have an issue open they are responding to fix that. So, we will preemptively support PHP 8.4 in anticipation of that fix.
Usage
Use one of the predefined grids on your website.
NOTE: When using "Tabs From Content Elements" and "Accordion From Content", you need to set the header Type to Hidden. If you don't then the accordion/tab title will also display as a heading tag in the content area.
Updating to bootstrap_grids
v5
The paths of TypoScript files have changed. Please ensure you reselect the template in your sys_template
record.
Contribution
We would love your help! We have Docker set up with helper scripts to make contributions easy.
Development setup
- Install Docker.
- Fork the boostrap_grids repository.
- Clone the forked repository (e.g.
git clone https://github.com/your_username/bootstrap_grids.git
), change into the directory, then checkout a branch or create desired branch. - OPTIONAL: Do
cp -i .docker/.env.dist .docker/.env
before the next step if you need anything other than default versions of TYPO3/PHP. Otherwise.docker/.env.dist
will automatically be copied to.docker/.env
if it doesn't already exist and you can skip this step. - Run
.docker/bin/start
. - OPTIONAL: Start Xdebug if you need to debug PHP code.
- Login to http://localhost:8080/typo3 with username
admin
and passwordPass123!
.
NOTE: The .docker/templates/[typo3-version-specified-in-.env]
directory is copied to the project root during .docker/bin/start
, so from that point on you'll need to edit files in their new location to see live changes. When you're done with the install, you can delete the container and those copied files by doing .docker/bin/clean
or by doing it manually.
Docker scripts
Command | Description |
---|---|
.docker/bin/start |
To start dev environment |
.docker/bin/stop |
To stop dev environment |
.docker/bin/clean |
Does docker compose down --remove-orphans and deletes generated/copied files (except .docker/.env ) and resets the database to its initial state using the starting point in .docker/templates/database/database.sqlite |
.docker/bin/logs |
Runs .docker/bin/compose logs -f |
.docker/bin/cli |
Enter the dev environment container |
.docker/bin/composer [command] |
Runs composer commands (e.g. ./docker/bin/composer install ) |
.docker/bin/typo3 [command] |
Runs vendor/bin/typo3 commands (e.g. .docker/bin/typo3 cache:flush ) |
.docker/bin/compose [command] |
Runs docker compose commands (e.g. ./docker/bin/compose up -d --build ) |
Change log
Version 5.0.0
- UPDATED: Switched to Bootstrap 5
- UPDATED: Enhanced Docker experience for easier development
Version 3.0.0
- REMOVED: Optional row gridelement
Version 2.0.0
- UPDATED: Switched to Bootstrap 4
- REMOVED: Slider grid element and flexslider script
Version 1.3.0
- ADDED: 2-/3-/4-columns grid
itemProcFunc
for select items - ADDED: Optional row gridelement
Version 1.2.0
- ADDED: Backend, drag & drop support: default col-md-6/4/3 classes are used for the column divs in the frontend if a gridelement is dragged into the page without editing it.
- UPDATED: Changed from empty to a blank character for the 2-/3-/4-columns grid the
not set
option value of the desktop column classes (first tab). - REMOVED: Optional support for old record based grid definitions removed
- REMOVED: Optional row gridelement
Special thanks
- Daniel Corn: Defining the grids via pageTS brings a lot of advantages.
- Josef Körner: For reducing the accordion TypoScript setup.