oneup / contao-page-teaser
Page teaser functionality for Contao Open Source CMS
Package info
github.com/1up-lab/contao-page-teaser
Type:contao-module
pkg:composer/oneup/contao-page-teaser
Requires
- php: ^8.4
- contao/core-bundle: ^5.3
- php-http/guzzle7-adapter: ^1.1
Requires (Dev)
- contao/manager-plugin: ^2.13
- friendsofphp/php-cs-fixer: ^3.93.0
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
Page teaser functionality for Contao Open Source CMS.
TL;DR
Features included:
- Page teaser as a content element.
- Page teaser as a module.
Requirements
- PHP
^8.4 - Contao Open Source CMS
^5.3
Installation
composer require oneup/contao-page-teaser
About this extension
Adds page teaser functionality to Contao CMS as both a content element and a front-end module.
Page settings
Every page gets a new "Page Teaser" section (added right after the meta/SERP preview fields) with:
- Preview Text - rich text field (TinyMCE), supports insert tags, indexed for search
- Optional teaser image - toggle checkbox that reveals a single image with image size, alt text and title
These fields are also available on forward and redirect pages.
Content Element
A "Page Teaser" content element lets you manually pick one or more pages via the page tree (with drag-and-drop ordering) and renders each as a teaser (title, preview text, image) using a selectable output template.
Module - two modes
- Individual: same manual page-picker as the content element (pick + order specific pages).
- Automatic/navigation-based: builds the teaser list from the page tree itself, using the standard Contao navigation parameters (level offset, show level, hard limit, show protected/hidden pages, define root page) — so it behaves like a navigation module but renders teaser cards instead of links.
Both modes let you choose the output template (default: teasers_list) and optionally hide protected pages.
License
MIT