Skip to content

Commit

Permalink
see cl 2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Patzer committed Feb 16, 2022
1 parent 7d7bcef commit 0d24c94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [2.5.2] - 2022-02-16

- Fixed: user group issue

## [2.5.1] - 2022-01-13
- Fixed: w72/htmlpagedom v1 compatibility

Expand Down Expand Up @@ -110,4 +114,4 @@ All notable changes to this project will be documented in this file.
- dependency from heimrichhannot/contao-haste_plus to heimrichhannot/contao-utils-bundle

[#6]: https://github.com/heimrichhannot/contao-news-pagination-bundle/pull/6
[#1]: https://github.com/heimrichhannot/contao-news-pagination-bundle/pull/1
[#1]: https://github.com/heimrichhannot/contao-news-pagination-bundle/pull/1
21 changes: 11 additions & 10 deletions src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
<?php

/**
* Hooks
/*
* Copyright (c) 2022 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/

$GLOBALS['TL_HOOKS']['parseArticles']['addNewsPagination'] = [\HeimrichHannot\NewsPaginationBundle\EventListener\ParseArticlesListener::class, '__invoke'];
$GLOBALS['TL_HOOKS']['parseTemplate']['adjustHofffContentNavigation'] = [\HeimrichHannot\NewsPaginationBundle\EventListener\ParseTemplateListener::class, '__invoke'];

/**
/*
* Content elements
*/
if (\Input::get('do') == 'news' && \Input::get('table') == 'tl_content' || TL_MODE == 'FE') {
if (\Input::get('do') && 'tl_content' == \Input::get('table') || TL_MODE == 'FE' || 'group' === \Contao\Input::get('do')) {
$GLOBALS['TL_CTE']['news_pagination'] = [
\HeimrichHannot\NewsPaginationBundle\NewsPaginationBundle::CONTENT_ELEMENT_NEWS_PAGINATION_START =>
'HeimrichHannot\NewsPaginationBundle\Element\NewsPaginationStart',
\HeimrichHannot\NewsPaginationBundle\NewsPaginationBundle::CONTENT_ELEMENT_NEWS_PAGINATION_STOP =>
'HeimrichHannot\NewsPaginationBundle\Element\NewsPaginationStop'
\HeimrichHannot\NewsPaginationBundle\NewsPaginationBundle::CONTENT_ELEMENT_NEWS_PAGINATION_START => 'HeimrichHannot\NewsPaginationBundle\Element\NewsPaginationStart',
\HeimrichHannot\NewsPaginationBundle\NewsPaginationBundle::CONTENT_ELEMENT_NEWS_PAGINATION_STOP => 'HeimrichHannot\NewsPaginationBundle\Element\NewsPaginationStop',
];
}

/**
/*
* Wrapper
*/
$GLOBALS['TL_WRAPPERS']['start'][] = \HeimrichHannot\NewsPaginationBundle\NewsPaginationBundle::CONTENT_ELEMENT_NEWS_PAGINATION_START;
$GLOBALS['TL_WRAPPERS']['stop'][] = \HeimrichHannot\NewsPaginationBundle\NewsPaginationBundle::CONTENT_ELEMENT_NEWS_PAGINATION_STOP;
$GLOBALS['TL_WRAPPERS']['stop'][] = \HeimrichHannot\NewsPaginationBundle\NewsPaginationBundle::CONTENT_ELEMENT_NEWS_PAGINATION_STOP;

0 comments on commit 0d24c94

Please sign in to comment.