Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-teaser
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.
https://github.com/heimrichhannot/contao-teaser
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-teaser
- Owner: heimrichhannot
- Created: 2016-02-08T12:28:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-01T09:50:26.000Z (over 3 years ago)
- Last Synced: 2024-09-17T20:51:10.924Z (3 months ago)
- Language: PHP
- Size: 411 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Teaser
> If you are using Contao 4, please use [Teaser Bundle](https://github.com/heimrichhannot/contao-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![alt privacy modal](./docs/img/teaser-preview.jpg)
### Content elementsName | 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.