Bug #50873 » issue_50873.patch
typo3/sysext/css_styled_content/static/setup.txt | ||
---|---|---|
1 = TMENU
|
||
1 {
|
||
sectionIndex = 1
|
||
sectionIndex.type = header
|
||
NO.wrapItemAndSub = <li class="csc-section">|</li>
|
||
}
|
||
}
|
||
... | ... | |
2 < .1
|
||
2 {
|
||
sectionIndex = 1
|
||
sectionIndex.type = header
|
||
wrap = <ul>|</ul>
|
||
NO.wrapItemAndSub = <li class="csc-section">|</li>
|
||
}
|
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php | ||
---|---|---|
return array();
|
||
}
|
||
$configuration = $this->mconf['sectionIndex.'];
|
||
if ($basePageRow['nav_hide'] && !$configuration['includeHiddenPages']) {
|
||
return array();
|
||
}
|
||
$useColPos = 0;
|
||
if (trim($configuration['useColPos']) !== '' || is_array($configuration['useColPos.'])) {
|
||
$useColPos = $GLOBALS['TSFE']->cObj->stdWrap($configuration['useColPos'], $configuration['useColPos.']);
|
||
... | ... | |
if ($GLOBALS['TSFE']->sys_language_contentOL && $basePageRow['_PAGES_OVERLAY_LANGUAGE']) {
|
||
$row = $this->sys_page->getRecordOverlay('tt_content', $row, $basePageRow['_PAGES_OVERLAY_LANGUAGE'], $GLOBALS['TSFE']->sys_language_contentOL);
|
||
}
|
||
if ($this->mconf['sectionIndex.']['type'] !== 'all') {
|
||
$doIncludeInSectionIndex = $row['sectionIndex'] >= 1;
|
||
$doHeaderCheck = $this->mconf['sectionIndex.']['type'] === 'header';
|
||
$isValidHeader = ((int)$row['header_layout'] !== 100 || !empty($this->mconf['sectionIndex.']['includeHiddenHeaders'])) && trim($row['header']) !== '';
|
||
if (!$doIncludeInSectionIndex || $doHeaderCheck && !$isValidHeader) {
|
||
continue;
|
||
}
|
||
if (!$configuration['includeHiddenHeaders'] && (int)$row['header_layout'] !== 100) {
|
||
continue;
|
||
}
|
||
if (!$configuration['includeEmptyHeaders'] && trim($row['header']) === '') {
|
||
continue;
|
||
}
|
||
if (is_array($row)) {
|
||
$uid = $row['uid'];
|
||
... | ... | |
$result[$uid]['bodytext'] = $row['bodytext'];
|
||
$result[$uid]['image'] = $row['image'];
|
||
$result[$uid]['sectionIndex_uid'] = $uid;
|
||
$result[$uid]['nav_hide'] = $row['sectionIndex'] == 0;
|
||
}
|
||
}
|
||
$GLOBALS['TYPO3_DB']->sql_free_result($resource);
|
- « Previous
- 1
- 2
- 3
- Next »