[TYPO3] menuitem with id "menu<number>"

Loek Hilgersom hilgersom at xs4all.nl
Fri Aug 25 14:00:44 CEST 2006


Sounds like you should just use <ol> instead of <ul>

Or add something like this line to your CSS:
#vert_menu ul ul {list-style-type: decimal}

Loek


Stano Paška wrote:
> Hi,
> 
> I know, this is trivial for you, but problem for me.
> I studied some snippets, but none does the same thing and I don't know how to reuse them.
> 
> I need "numbering" second level ul (to manipulate with javascript).
> <ul id="menu<number>">
> 
> It must be done with .insertData, or .dataWrap and {register:somewhat} but I don't know exact syntax...
> 
> Thank's for answers and/or template improvements :-)
> 
> Stano Paška.
> 
> ----------------------
> 
> tmpl.vert_menu = HMENU
> 
> tmpl.vert_menu.special = directory
> tmpl.vert_menu.special.value = 5
> 
> tmpl.vert_menu.1 = TMENU
> tmpl.vert_menu.1 {
>   expAll = 1
>   noBlur = 1
>   wrap = <ul>|</ul>
>   NO {
>     wrapItemAndSub = <li class="vml1i">|</li>
>     stdWrap.wrap = |:
>   }
>   ACT = 1
>   ACT {
>     ATagParams = class="vma"
>     wrapItemAndSub = <li class="vml1i">|</li>
>     stdWrap.wrap = |:
>   }
>   IFSUB = 1
>   IFSUB {
>     wrapItemAndSub = <li class="vml1m">|</li>
>     doNotLinkIt = 1
>     stdWrap.wrap = |:
>   }
>   ACTIFSUB = 1
>   ACTIFSUB {
>     wrapItemAndSub = <li class="vml1m vma">|</li>
>     doNotLinkIt = 1
>     stdWrap.wrap = |:
>   }
> }
> 
> tmpl.vert_menu.2 = TMENU
> tmpl.vert_menu.2 {
>   expAll = 1
>   noBlur = 1
> /* HERE I NEED WRITE NUMBERS 1, 2, 3, ... */
>   wrap = <ul id="menu">|</ul>
> 
>   NO {
>     stdWrap.case = lower
>     wrapItemAndSub = <li class="vml2i">|</li>
>   }
>   ACT = 1
>   ACT {
>     stdWrap.case = lower
>     ATagParams = class="vma"
>     wrapItemAndSub = <li class="vml2i">|</li>
>   }
>   IFSUB = 1
>   IFSUB {
>     stdWrap.case = lower
>     wrapItemAndSub = <li class="vml2m">|</li>
>     doNotLinkIt = 1
>   }
>   ACTIFSUB = 1
>   ACTIFSUB {
>     stdWrap.case = lower
>     wrapItemAndSub = <li class="vml2m vma">|</li>
>     doNotLinkIt = 1
>   }
> }
> 
> tmpl.vert_menu.3 = TMENU
> tmpl.vert_menu.3 {
>   noBlur = 1
>   wrap = <ul>|</ul>
>   NO {
>     stdWrap.case = lower
>     wrapItemAndSub = <li class="vml3i">|</li>
>   }
>   ACT = 1
>   ACT {
>     stdWrap.case = lower
>     ATagParams = class="vma"
>     wrapItemAndSub = <li class="vml3i">|</li>
>   }
> }
> 
> 



More information about the TYPO3-english mailing list