[TYPO3-english] menu li and elementUid

Sandro Hagen shagen at dachcomdigital.com
Tue Feb 24 16:44:33 CET 2009


Hi

In TMENU just use wrapItemAndSub
lib.inc_menu.1.NO.wrapItemAndSub = <li>|</li>

And it's valid

Peace
hagi

Am 24.02.09 16:41 schrieb "Jacco van der Post" unter
<jacco at id-internetservices.com>:

> Hi,
> 
> I want to have my menu li items having a elementUid. I have 2 questions.
> 
> This apparently often used but wrong example seems to work :
> 
> lib.inc_menu = HMENU
> lib.inc_menu {
> 1 = TMENU
> 1.noBlur = 1
> 1 {
> wrap = <ul>|</ul>
> NO {
> ATagTitle.field = description
> 
>        before = <li id="t-{elementUid}">|*|<li
> id="t-{elementUid}">|*|<li id="t-{elementUid}" class="last">
>        after = </li>
>        subst_elementUid = 1
> ATagBeforeWrap = 1
> linkWrap= <span>|</span>
> }
> }
> }
> 
> --------------
> It produces code like :
> 
> <ul>
> <li id="t-97"> item </li>
> <li id="t-95"> item </li>
>    <ul>
>    <li id="t-94"> item </li>
>    <li id="t-93"> item </li>
>    </ul>
> <li id="t-92"> item </li>
> </ul>
> 
> However the example above is semantically incorrect according to
> http://www.w3schools.com/HTML/tryit.asp?filename=tryhtml_nestedlists2
> and I run into troubles with Internet Explorer.
> 
> It should be :
> 
> <ul>
> <li> item </li>
> <li> item
>    <ul>
>    <li> item </li>
>    <li> item </li>
>    </ul>
> </li>
> <li> item </li>
> </ul>
> 
> -------------
> 
> Now by replacing "before" and "after" by
> 
> wrapItemAndSub = <li id="t-{elementUid}">|</li>||*||*|<li
> id="t-{elementUid}" class="last">|</li>|
> 
> 
> It produces the 2nd example. However the subst_elementUid does not seem
> to work with wrapItemAndSub.
> 
>>> Question 1 :
> Even with the tsref page 11 explanation about optionSplit, I can't
> figure out what ||*||*|  means and why after the last </li> still |
> comes.  (I do understand |*||*| or pipes ).
> 
>>> Question 2 :
> Could someone help me with building the semantically right menu on which
> the li's get an elementUid? (so not the atags by ATagParams).
> 
> 
> Thanks
> 
> Jacco
> 
> 
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

----------------------------
DACHCOM digital AG
Bahnhofstrasse 10
CH-9424 Rheineck

Tel +41 71 886 45 85
Fax +41 71 886 45 86

shagen at dachcomdigital.com
www.dachcomdigital.com
----------------------------



More information about the TYPO3-english mailing list