[TYPO3] Section index and option split
Tapio Markula
tapio.markula at atwebteam.com
Wed May 16 16:33:26 CEST 2007
Peter Klein
> Here's a tested version of the TS snippet:
>
> -- cut --
> page.includeLibs.usermenu = fileadmin/menuFunc.inc
>
> tt_content.menu.20.3 >
> tt_content.menu.20.3 = HMENU
> tt_content.menu.20.3 {
> special = userfunction
> special.userFunc = user_menuFunc->makeMenuArray
> special.userFunc.table = tt_content
> special.userFunc.select.andWhere = sectionIndex!=0 AND header!=''
> special.userFunc.select.pidInList.override.field = pages
> wrap = <div class="csc-menu csc-menu-3">|</div>
> 1 = TMENU
cut
My final code
tt_content.menu.20.3 >
tt_content.menu.20.3 = HMENU
tt_content.menu.20.3 {
special = userfunction
special.userFunc = user_menuFunc->makeMenuArray
special.userFunc.table = tt_content
special.userFunc.select.andWhere = sectionIndex!=0 AND header!='' AND
colPos=0 AND header_layout=2
special.userFunc.select.pidInList.override.field = pages
wrap = <div class="csc-menu csc-menu-3">|</div>
1 = TMENU
1.NO.doNotLinkIt = 1
1.NO.stdWrap.field = header
1.NO.stdWrap.typolink.parameter.field = pid
1.NO.stdWrap.typolink.section.field = uid
1.NO.stdWrap.htmlSpecialChars = 1
1.NO.allWrap = <span class="csc-section">| | </span>|*|
<span class="csc-section">| | </span>|*|<span
class="csc-section">|</span>
}
One question
How to add cobfig for 'order by' - should be 'sorting'
$res = $this->cObj->exec_getQuery($lConf["table"],$lConf["select."]);
$res = $this->cObj->exec_getQuery($lConf["table"],$lConf["select."],
$lConf["orderBy"]); // adding order by statement
special.userFunc.orderBy???
More information about the TYPO3-english
mailing list