[TYPO3] TMENU: 2nd-level-items in the 1st-level a-title-tag

Michael Geihe silberknofell at arcor.de
Fri Jul 28 09:41:05 CEST 2006


Hi,
in my first-level-menu I want the the second-level-items to be in the a 
- title -tag, so that these second-level-items appear as a kind of 
tooltip in the browser.
Example: If Page "page1" (id=111) has the subpages "page1_a, page1_b, 
page1_c" the link should be like this:

<a href="index.php?id=111" title="page1_a, page1_b, page1_c"> page1 </a>

Any ideas to do this with HMENU and TMENU ?

P.S.: I had the following idea:
I don't show the 1st-level-items in TMENU but build the corresponding 
<a>-tag "manually" around the list of 2nd-level items.
But I don't know how to put in the page-id and title of the appropriate 
1st-level-page dynamically (the ###-fields in the TS below).

Any tips? A completely different solution would also be helpful.

##########################################################################
### My attempt, does not work yet
temp.NAV2=COA
temp.NAV2 {

 20=HMENU
 20 {      1=TMENU
   1 {
      expAll
      NO.doNotShowLink=1
      }
         2 = TMENU
   2 {
      NO {
          doNotLinkIt = 1
          allWrap= &nbsp;(|)&nbsp;
          }
          wrap=<li><a href="index.php?id=###page-id of the first level 
item###" title="|">###name of the first level item###</a></li>
      }

       wrap =<ul>|</ul>
    }

}



More information about the TYPO3-english mailing list