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

Søren Malling soren.malling at gmail.com
Mon Sep 16 20:22:10 CEST 2013


Hi Thomas,

Welcome to the cool world of Fluid.

Try this in your TMENU

NO {
 allWrap = |
stdWrap.wrap = <span>|</span>
ATagParams = class="some-css-class-for-your-a-tag"
 }

Regards

Søren


On Mon, Sep 16, 2013 at 5:23 PM, Thomas Petersen <tp at codem.dk> wrote:

> 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.
> ______________________________**_________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-dev<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev>
>



More information about the TYPO3-dev mailing list