heimrichhannot / contao-news-pagination-bundle
This bundle offers content pagination for the news reader.
Installs: 301
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 7
Forks: 2
Open Issues: 1
Type:contao-bundle
Requires
- php: >=5.6.0
- contao/core-bundle: ^4.4
- heimrichhannot/contao-head-bundle: ^1.0
- wa72/htmlpagedom: ^1.3
Requires (Dev)
- contao/manager-plugin: ^2.0
- phpunit/phpunit: ^4.5
- symfony/phpunit-bridge: ^2.8|^3.0
README
This bundle offers automatic content pagination for the core news reader module and the heimrichhannot/contao-reader-bundle.
Features
- add a pagination for navigating between the news parts
- automatic splitting
- split news articles by an adjustable character amount respecting html tags
- manual splitting
- split news content by wrapping the content elements in special start and stop content elements
Technical instructions
- Activate "addPagination" in your news reader module and do the configuration there.
- 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 accordion) is supported for splitting, other elements are removed properly according to current page number though (completely)