[TYPO3-dev] Bug with menu
Peter Klein
peter at umloud.dk
Mon Dec 1 17:50:39 CET 2008
Hi Steffen.
Are you using TemplaVoila? As the section menu never did work with TV.
But you can make something similar that works with TV.
Here's how I do it..
In the TS setup field, insert this:
-- cut --
temp.anchormenu = RECORDS
temp.anchormenu.source.data = register:recordsInTVField
temp.anchormenu.tables = tt_content
temp.anchormenu.conf.tt_content = TEXT
temp.anchormenu.conf.tt_content {
noBlur = 1
fieldRequired = header
value = » {field:header}
insertData = 1
trim = 1
htmlSpecialChars = 1
wrap = <li>|</li>
typolink.title.field = header
typolink.parameter.field = pid
typolink.section.field = uid
typolink.section.wrap = c|
if.isTrue.field = sectionIndex
}
lib.anchormenu = COA
lib.anchormenu.1 < temp.anchormenu
lib.anchormenu.wrap = <ul id="sectionmenu">|</ul>
lib.anchormenu.if.isTrue.cObject < temp.anchormenu
-- cut --
Then in your TV DS, change:
-- cut --
10 = RECORDS
10.source.current = 1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
-- cut --
Into:
-- cut --
10 = LOAD_REGISTER
10.recordsInTVField.current = 1
20 < lib.anchormenu
30 = RECORDS
30.source.data = register:recordsInTVField
30.tables = tt_content
30.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
-- cut --
--
Peter Klein / Umloud Untd.
"Steffen Kamper" <info at sk-typo3.de> wrote in message
news:mailman.1.1228132996.27221.typo3-dev at lists.netfielders.de...
> Hi,
>
> i just saw a problem using Menu of type
> "Menu of subpages to these pages + sections"
>
> The Links all missing the sections.
>
> Definition is
> 7 < .1
> 7.wrap = <div class="csc-menu csc-menu-7">|</div>
> 7.1.expAll = 1
> 7.2 < .7.1
> 7.2.sectionIndex = 1
> 7.2.sectionIndex.type = header
> 7.2.NO.allWrap = <p class="csc-section">|</p>
>
> so i guess sectionIndex doesn't work.
> Any spontanous idea how to fix?
>
> vg Steffen
More information about the TYPO3-dev
mailing list