[TYPO3] TMENU with title and subtitle as tooltip

Peter Klein peter at umloud.dk
Thu Feb 2 16:18:02 CET 2006


Hi George. Try substituting these 3 lines in your TS menu:

stdWrap.innerWrap.field = subtitle
stdWrap.innerWrap.required = 1
stdWrap.innerWrap.wrap = <span class="tooltip">|</span>

With these:

stdWrap.cObject = COA
stdWrap.innerWrap {
  10 = = TEXT
  10.field = title
  20 = TEXT
  20.field = subtitle
  20.required = 1
  20.wrap = <span class="tooltip">|</span>
}

Untested, but should work.. ;)

-- 
Peter Klein/Umloud Untd


"Gregor Kaczmarczyk" <gregor at crazes.de> skrev i en meddelelse 
news:mailman.1.1138877441.32039.typo3-english at lists.netfielders.de...
> hi Christopher,
>
> Christopher schrieb:
>> Why not try:
>>
>> ATagTitle.field = title // subtitle [1]
> i don´t think this helps. if i understand right, this statement would fill 
> the links with subtitle if there is no title for the page.
>
> maybe it wasn´t clear what i want to achieve.
> i need the following ouitput:
> <li><a href="#">Link 3<span class="tooltip"> Tooltip 3</span></a></li>
> so i need title _and_ subtitle.
> but the tooltip-span should only be rendered if the subtitle was filled.
>
> my TS-snippets is working but i get wrong order of title and subtitle:
> <li><a href="#"><span class="tooltip">Tooltip 3</span>Link 3</a></li>
>
> anybody a idea how this can be achieved?
>
> ciao, greg 





More information about the TYPO3-english mailing list