[TYPO3-dev] Fluid menu span-tag problem.

Thomas Petersen tp at codem.dk
Mon Sep 16 17:23:32 CEST 2013


Hi all.

Its my first time with TYPO3 and Fluid, but im allready love it.
I have a little problem, i have a menu thats in RAW HTML looks like this.

<nav>
  <ul id="navigation">
    <li class="drop"><a href="startsite/">Startsite</a></li>
    <li class="current_page_item"><a href="oversigt/">Sitemap</a></li>
  </ul>
  <div class="cl"></div>
</nav>

I need a SPAN-tag inside the A-tag, but i cant see how im doing this in TS..
My TS code is.

lib.mainNavi = HMENU
lib.mainNavi.entryLevel=0
lib.mainNavi.1 = TMENU
lib.mainNavi.1 {
  wrap = <ul id="navigation">|</ul>
  expAll = 0
  NO.allWrap = <li class="drop">|</li>
  RO < .NO
  RO = 1
  CUR < .NO
  CUR = 1
  CUR.allWrap = <li class="current_page_item">|</li>
  ACT < .CUR
}

If i add the SPAN-tag like 
<li class="drop"><span>|</span></li>
<li class="current_page_item"><span>|</span></li>

I get the A-tag inside the SPAN, and its make some funny things with my CSS layout, so i need the SPAN inside the A-tag, how and where do i fix this ?

Thx for reading this post.



More information about the TYPO3-dev mailing list