b13 / listelements
Adds list elements to tt_content
Installs: 42 080
Dependents: 0
Suggesters: 1
Security: 0
Stars: 11
Watchers: 8
Forks: 2
Open Issues: 2
Type:typo3-cms-extension
pkg:composer/b13/listelements
Requires
- php: ^7.4 || ~8.0
- typo3/cms-backend: ^11.5 || ^12.4 || ^13.1
- typo3/cms-fluid-styled-content: ^11.5 || ^12.4 || ^13.1
Requires (Dev)
- b13/listelements-example: *
- saschaegerer/phpstan-typo3: ^1.8
- typo3/cms-frontend: ^11.5 || ^12.4 || ^13.1
- typo3/cms-workspaces: ^11.5 || ^12.4 || ^13.1
- typo3/coding-standards: ^0.5.5
- typo3/testing-framework: ^7.0 || ^8.0
- dev-master
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 0.3.1
- 0.3.0
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0.x-dev
- 0.2.0
- 0.1.8
- 0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-task/ci
- dev-task/v14
- dev-add-default-image-types
- dev-sqlPerformance
- dev-task/dataprocessor
- dev-bmack-patch-1
- dev-bugfix/php8-fallback
- dev-remove-custom-fileservice
- dev-workspace-backend-previews
- dev-BEXT-324
- dev-bugfix/deps
- dev-BEXT-251
This package is auto-updated.
Last update: 2026-01-08 17:30:05 UTC
README
About this extension
This extension adds list items to tt_content. It adds a database field tx_listelements_list to tt_content that
allows adding flexible list items as IRRE records to any content element.
Installation
Add the extension to your project by installing and adding the TypoScript setup to your site-Extension setup:
@import 'EXT:listelements/Configuration/TypoScript/setup.typoscript'
This adds the configuration for adding the list items as an array listitems to the variables available for your
content element's Fluid template, like this:
<f:for each="{listitems}" as="item">
...
</f:for>
Backend PageLayoutView preview
This extension adds a PageContentPreviewRendering Listener to resolve ListItems (and if needed further Relations to asses/images) to allow customized display using Fluid templates for the backend Page Layout View.
For TYPO3 Version > 12 the Listener is not required anymore, because TYPO3 use the Record Api to resolve relations automatically.
For TYPO3 Version > 13 the Listener is not used anymore (because the Event changed)
Migrate or BE-Templates
old:
<ul> <f:for each="{listitems}" as="item"> <li> {item.header} <f:if condition="{item.processedImages}"> <f:for each="{item.processedImages}" as="image"> <f:image src="{image.uid}" treatIdAsReference="true"/> </f:for> </f:if> </li> </f:for> </ul>
new:
<ul> <f:for each="{record.tx_listelements_list}" as="item"> <li> {item.header} <f:if condition="{item.images}"> <f:for each="{item.images}" as="image"> <f:image src="{image.uid}" treatIdAsReference="true"/> </f:for> </f:if> </li> </f:for> </ul>
Important info on configuration
Remember to add the hiddenpalette to all showitems-configuration for your own content elements to have invisible
fields like the language uid saved for all list items.