[TYPO3] Section index and option split

Peter Klein peter at umloud.dk
Wed May 16 19:18:25 CEST 2007


No. The it has to be:

special.userFunc.select.orderBy = sorting

See TSRef, select:
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/5/5/

--
Peter Klein / Umloud Untd


"Tapio Markula" <tapio.markula at atwebteam.com> wrote in message 
news:mailman.1.1179326207.9335.typo3-english at lists.netfielders.de...
> 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">|&nbsp;&#124;&nbsp;</span>|*| 
> <span class="csc-section">|&nbsp;&#124;&nbsp;</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