Settings::getPageConfig()
\nn\t3::Settings()->getPageConfig($tsPath = '', $pid = NULL);
Get page configuration
\nn\t3::Settings()->getPageConfig();
\nn\t3::Settings()->getPageConfig('RTE.default.preset');
\nn\t3::Settings()->getPageConfig( $tsPath, $pid );
Copied!
Also exists as ViewHelper:
{nnt3:ts.page(path:'path.to.pageconfig')}
Copied!
| @return array
Source Code
public function getPageConfig( $tsPath = '', $pid = null )
{
$pid = $pid ?: \nn\t3::Page()->getPid();
$config = \TYPO3\CMS\Backend\Utility\BackendUtility::getPagesTSconfig( $pid );
$config = \nn\t3::TypoScript()->convertToPlainArray( $config );
return $tsPath ? $this->getFromPath( $tsPath, $config ) : $config;
}
Copied!