typo3-realurl
typo3-realurl copied to clipboard
Add option to configure pageTitleFields
We'd like to alter the set of pageTitleFields (\DmitryDulepov\Realurl\EncodeDecoderBase::$pageTitleFields) that is currently hardcoded to array('tx_realurl_pathsegment', 'alias', 'nav_title', 'title', 'uid').
With realurl 1.x it was possible to change those fields via TYPO3_CONF_VARS, e.g. $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']['pagePath']['segTitleFieldList'] = 'tx_realurl_pathsegment,alias,title,uid';
Any chance this option will be added to version 2.x?
just a workaround: you can override it in realurl_conf.php:
<?php
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= 'field1,field2';
\DmitryDulepov\Realurl\EncodeDecoderBase::$pageTitleFields = array('field1','field2','title','uid');
Thanks a lot for the workaround !
Any update on this?
Thanks for the workaround. An official update for this would be awesome.