heimrichhannot/contao-teaser-bundle
Composer 安装命令:
composer require heimrichhannot/contao-teaser-bundle
包简介
A contao teaser content element, that provides the ability to link the element with pages, articles, files, downloads or external urls.
README 文档
README
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:
composer require heimrichhannot/contao-teaser-bundle
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
统计信息
- 总下载量: 6.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2018-08-15

