Project

General

Profile

Feature #21142 ยป 12065_menu_sectionIndex.patch

Administrator Admin, 2009-09-25 17:24

View differences:

typo3/sysext/cms/tslib/class.tslib_menu.php (working copy)
$sys_language_uid = intval($GLOBALS['TSFE']->sys_language_uid);
} else $sys_language_uid=0;
$selectSetup = Array(
'pidInList'=>$this->id,
'orderBy'=>$altSortField,
'where' => 'colPos=0 AND sys_language_uid='.$sys_language_uid,
'andWhere' => 'sectionIndex!=0'
);
switch($this->mconf['sectionIndex.']['type']) {
$sectionIndexSelectWhere = 'colPos = 0 AND sys_language_uid = ' . $sys_language_uid;
// modify the default "where" clause for the sectionIndex option
if ($this->mconf['sectionIndex.']['where'] || $this->mconf['sectionIndex.']['where.']) {
$sectionIndexSelectWhere = $GLOBALS['TSFE']->cObj->stdWrap($this->mconf['sectionIndex.']['where'], $this->mconf['sectionIndex.']['where.']);
}
$selectSetup = array(
'pidInList' => $this->id,
'orderBy' => $altSortField,
'where' => $sectionIndexSelectWhere,
'andWhere' => 'sectionIndex != 0'
);
switch ($this->mconf['sectionIndex.']['type']) {
case 'all':
unset($selectSetup['andWhere']);
break;
    (1-1/1)