You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During a SEO optimization, I noticed that the page number is not displayed when paging the newslists. In TYPO3 version 8 this was still possible.
I was able to fix that with the following code.
// GeorgRinger\News\ViewHelpers\Widget\Controller\PaginateController::indexAction()
// BUG BEGIN: This line no longer works from TYPO3 version 9
//$GLOBALS['TSFE']->page['title'] .= $titleAddition;
// BUG END
// FIX BEGIN: We use the news NewsTitleProvider instead
$pageTitle = $GLOBALS['TSFE']->page['title'];
if(!empty($GLOBALS['TSFE']->page['seo_title'])) {
$pageTitle = $GLOBALS['TSFE']->page['seo_title'];
}
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\GeorgRinger\News\Seo\NewsTitleProvider::class)->setTitle($pageTitle . $titleAddition);
// FIX END
The text was updated successfully, but these errors were encountered:
During a SEO optimization, I noticed that the page number is not displayed when paging the newslists. In TYPO3 version 8 this was still possible.
I was able to fix that with the following code.
The text was updated successfully, but these errors were encountered: