heimrichhannot / contao-teaser
A contao teaser content element, that provides the ability to link the element with pages, articles, files, downloads or external urls.
Installs: 4 778
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 6
Forks: 1
Open Issues: 1
Type:contao-module
pkg:composer/heimrichhannot/contao-teaser
Requires
- php: ~5.4 || ~7.0
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ^3.5.1 || ~4.1
- heimrichhannot/contao-haste_plus: ~1.0
README
If you are using Contao 4, please use Teaser Bundle instead!
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
Content elements
| Name | Description |
|---|---|
| HeimrichHannot\Teaser\ContentLinkTeaser | The content element, that provides the teaser settings. |
Fields
tl_content:
| Name | Description |
|---|---|
| source | Radio button, to select the source type. (page, article, link, download, external url) |
| jumpTo | The page id, from tl_page, where to jump to. |
| articleId | The article id, from tl_article, where to jump to. |
| fileSRC | The file source uuid, from tl_files (required by link and download sources). |
| teaserLinkText | A dropdown the link text can be selected from. |
| teaserLinkCssClass | A text field, to put in the css class for the link element. |
| teaserLinkBehaviour | A dropdown to select the link behaviour from. |
| teaserContentTemplate | Overwrite the teaser content template. |
Hooks
| Name | Arguments | Expected return value | Description |
|---|---|---|---|
| generateTeaserLink | $objElement, $showMore | $showMore | Add custom teaser source and modify the content element. |
| getContentSourceOptions | $arrOptions, $dc | $arrOptions | Add custom source options to the dca. |
