Project

General

Profile

Feature #23684 » link-to-list-module_v3.patch

Administrator Admin, 2010-10-07 14:34

View differences:

typo3/sysext/cms/layout/db_layout.php (working copy)
$body = $this->renderListContent(); // All other listings
}
// If page is a sysfolder
$allowedDoktypes = t3lib_BEfunc::getModTSconfig($this->id,'mod.doktypeInformation');
if (t3lib_div::inList($allowedDoktypes['value'], $this->pageinfo['doktype'])) {
$moduleLoader = t3lib_div::makeInstance('t3lib_loadModules');
$moduleLoader->load($GLOBALS['TBE_MODULES']);
$modules = $moduleLoader->modules;
// Check access to list module
if (is_array($modules['web']['sub']['list'])) {
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
'<a href="javascript:top.goToModule( \'web_list\',1);">' .
$GLOBALS['LANG']->getLL('link_to_sysfolder') . '</a>',
$GLOBALS['LANG']->getLL('clickAPage_header'),
t3lib_FlashMessage::INFO
);
$body = $flashMessage->render() . $body;
}
}
if ($this->pageinfo['content_from_pid']) {
//$contentPage = t3lib_BEfunc::getRecord('pages', intval($this->pageinfo['content_from_pid']));
$title = t3lib_BEfunc::getRecordTitle('pages', $contentPage);
typo3/sysext/list/ext_localconf.php (revision 0)
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
t3lib_extMgm::addPageTSConfig('mod.doktypeInformation=254');
?>
(2-2/2)