Download the PHP package heimrichhannot/contao-teaser-bundle without Composer
On this page you can find all versions of the php package heimrichhannot/contao-teaser-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heimrichhannot/contao-teaser-bundle
More information about heimrichhannot/contao-teaser-bundle
Files in heimrichhannot/contao-teaser-bundle
Package contao-teaser-bundle
Short Description A contao teaser content element, that provides the ability to link the element with pages, articles, files, downloads or external urls.
License LGPL-3.0-or-later
Homepage https://github.com/heimrichhannot/contao-teaser-bundle
Informations about the package contao-teaser-bundle
Contao Teaser Bundle
Teaser is a contao content element, that provides the ability to link the element with pages, articles, files, downloads and external urls. Can be used as replacement for ce_page_teaser.
Features
- Custom text and css-class for more link
- Link the whole article
- Hide more link, link entire element.
- Overwrite content template
- migration command from ce_page_teaser module and older versions.
Usage
Install
Prerequisites:
- Contao ^4.9 Managed edition
- PHP ^8.1
Install with composer:
Update the database afterwards.
Developers
Templates
- Element template prefix:
ce_linkteaser_
. - Image template prefix:
linkteaser_content_image_
.
Hooks
Name | Arguments | Expected return value | Description |
---|---|---|---|
generateTeaserLink |
$element: LinkTeaserElement, $showMore: bool | $showMore: bool | Add custom teaser source and modify the content element. |
getContentSourceOptions |
$options: array, $dc: DataContainer | $options: array | Add custom source options to the dca. |
Add custom text for more link
Just add your custom text in the default contao translation file within $GLOBALS['TL_LANG']['MSC']['linkteaser']['teaserlinktext']
. Afterwards (maybe you need to clear your cache) you can choose the new entry in the more link text field.
Upgrade from older versions
See Upgrade introductions
All versions of contao-teaser-bundle with dependencies
contao/core-bundle Version ~4.9 || ^5.0
contao/manager-plugin Version ^2.0
doctrine/dbal Version ^2.13 || ^3.0
heimrichhannot/contao-utils-bundle Version ^2.28 || ^3.0
symfony/dependency-injection Version ^4.4 || ^5.0 || ^6.0