Selects and displays content elements according to certain parameters (Max elements, sorting, persistent mode)
Content Element Selector
This frontend-plugin selects from a set of content-element records (single records and/or records from pages) and renders them. You can choose the sorting you want to be applied to the set of records and the maximum elements to show. One sorting option is "random", so you can show random elements out of your set. Finally, there's a feature called 'persistent mode'. In this mode, a cookie will be used to store the selected UID's of the content-elements. This way you can realize:
- Rotating content (e.g. The user will see a new teaser on each visit of the page)
- Keep a random selection for a certain timespan before a new random selection is made (you can set the cookie-expire-time)
- Step through the randomly sorted list before a new random selection will be made.
If you choose "0" for "Persistent selection expire", the cookie will expire when the browser window will be closed (may not work depending on browser/setting!). The plugin respects versioning/localization of records.
- Sorting ascending
- Sorting descending
- Header-text ascending
- Header-text descending
Add the static template of the extension to your template.
Add the frontend plugin in your content, choose single records and/or pages/sys-folders to choose content elements from. Set plugin preferences Order selection by, Max elements to show, Persistent Mode and Persistent selection expire.
TYPO3 9/10 compatibility; drop TYPO3 8 support
Reset cookie data after plugin data (options) modification
Domain\Model\Content: remove uid and pid (inherited from AbstractEntity)
Fix markdown syntax in this file
- TYPO3 8 compatibility
- composer support
- dedicated cookie for each plugin instance
- improved rotation (persistent mode)