typoscript - How to get destination uid in sectionIndex menu in TYPO3? -


i need generate sectionindex following structure:

<div data-magellan-expedition="fixed">   <dl class="sub-nav">     <dd data-magellan-arrival="c123"><a href="#c123">build html</a></dd>     <dd data-magellan-arrival="c124"><a href="#c124">arrival 2</a></dd>   </dl> </div> 

my problem not know how set correct value data-magellan-arrival property. how can retrieve uid of current item in menu?

my typoscript looks this:

lib.cb_foundation.magellan = hmenu lib.cb_foundation.magellan {     1 = tmenu     1 {         sectionindex = 1         sectionindex.type = header         sectionindex.usecolpos = 0         wrap = <div data-magellan-expedition="fixed"><dl class="sub-nav"> | </dl></div>         no {             allwrap = <dd data-magellan-arrival="c{field:uid}"> | </dd>             allwrap.insertdata = 1         }     }     special = list     special.value.data = page:uid } 

however, {field:uid} gives me uid of content element uses typoscript, not uid of destination section element.

use {field:sectionindex_uid} instead of {field:uid}. there small hint @ bottom of tsref.


Comments