heimrichhannot / contao-news_pagination
This module offers manual content pagination for the news reader.
Installs: 709
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Type:contao-module
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-request: ^1.1
- wa72/htmlpagedom: ^1.3
README
This module offers manual content pagination for the news reader.
Features
- add a pagination for navigating between the news parts
- manual splitting
- split news content by wrapping the content elements in special start and stop content elements
- automatic splitting
- split news articles by an adjustable character amount considering html tags
Technical instructions
- Activate "addPagination" in your news reader module.
- Add
<?= $this->newsPagination ?>
to your details template (e.g. "news_full").
Known limitations for automatic pagination
- currently only ce_text not nested in another content element (like an accordeon) is supported for splitting, other elements are removed properly according to current page number though (completely)