[TYPO3] Section index and option split

Peter Klein peter at umloud.dk
Sun May 13 12:33:10 CEST 2007


Hi Tapio.
The section menu is not a real menu, but just a select query from the 
content on the current page.
One way to get optionSpit support, would be to convert it into a real menu 
object.

To do that, you could use the snippet I posted on Typo3Wizard a while ago.
http://www.typo3wizard.com/en/snippets/menus/create-menus-using-data-from-other-tables-than-pages.html

And then rewrite the Typoscript of "tt_content.menu.20.3", like this 
(Untested):

-- cut --
tt_content.menu.20.3 >
tt_content.menu.20.3 < tt_content.menu.20.default
tt_content.menu.20.3 {
 wrap = <div class="csc-menu csc-menu-3">|</div>
 special >
 special = userfunction
 special.userFunc = user_menuFunc->makeMenuArray
 special.userFunc.table = tt_content
 special.userFunc.select.andWhere = sectionIndex!=0
 special.userFunc.select.pidInList.override.field = pages
 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.wrap = <p class="csc-section">|</p>
 1.NO.stdWrap.htmlSpecialChars = 1
 1.NO.stdWrap.if.isTrue.field = header
}
-- cut --

--
Peter Klein/Umloud Untd

"Tapio Markula" <tapio.markula at atwebteam.com> wrote in message 
news:mailman.1.1178963048.13611.typo3-english at lists.netfielders.de...
> Hi
>
> I have problems with section index
>
> default
>
>
> # "Section index (pagecontent w/Index checked - liststyle)"
> 3.wrap = <ul class="csc-menu csc-menu-3">|</ul>
> 3.renderObj.noBlur = 1
> 3.renderObj.wrap = <li class="csc-section">|</li>
>
> I would like to reset that
> This doesn't work:
>
> tt_content.menu.20.3 {
> wrap =<div class="csc-menu csc-menu-3">|</div>
> renderObj.wrap = |
> 1.NO.wrapItemAndSub=|
> 1.NO.linkWrap= <span class="csc-section">|&nbsp;&#124;&nbsp;</span> |*| 
> <span class="csc-section">|&nbsp;&#124;&nbsp;</span> |*|<span 
> class="csc-section lastItem">|</span>
> 1.NO.ATagParams = class="sectionLink"
> }
>
> 1.NO has no effect - apparently because of subsection of a page
>
> If I set
> tt_content.menu.20.3 {
>
> wrap =<div class="csc-menu csc-menu-3">|</div>
> renderObj.wrap = <span class="csc-section">|&nbsp;&#124;&nbsp;</span> |*| 
> <span class="csc-section">|&nbsp;&#124;&nbsp;</span> |*|<span 
> class="csc-section lastItem">|</span>
> }
>
> option split for renderObj.wrap doesn't work
>
> I don't figure how I could in this case option split for links 




More information about the TYPO3-english mailing list