[TYPO3] TMENU with title and subtitle as tooltip

Gregor Kaczmarczyk gregor at crazes.de
Thu Feb 2 17:19:44 CET 2006


hi Christopher,

Christopher schrieb:
>>>
>>> ATagTitle.field = title // subtitle [1]

> Nope. It will produce links as usual, but with the TITLE ATTRIBUTE
> filled with either of title/subtitle:
> 
> <a href="foo/" title="More about foo!">Foo</a>
> <a href="bar/" title="An introduction to bar...">Bar</a>
> 
> This will produce a tooltip in every visual brower I know about, and
> will fill it with the output of whatever field you specify--the link
> text will still be the page title.
after reading TSRef second time, i got it with title-attribute...
but i neeed a styled tooltip....


> NO {
>   doNotShowLink = 1
> 
>   cObject = COA
>   cObject {
>     # Note that it'd probably be better to wrap the  COA in just
> <li>|</li> and build the link
>     # as a TEXT or HTML object and use .typolink to generate the link:
> 
>     dataWrap = <li><a href="index.php?id={field:uid}">|</a></li>
> 
>     5 = TEXT
>     5 {
>       # Properties for the <span> here; display it conditionally using '.if'
>       # (http://typo3.org/documentation/document-library/doc_core_tsref/if/)
>       #
>       # Note that there is probably no good reason to use a class on the  span
>       # (i.e. since there is probably an id on the whole menu object
> and the spans
>       # can be targeted in css with #menuId li a span { /* Tooltip
> properties */ })
> 
>       field:subtitle
>       wrap = <span>|</span>
>       if.isTrue.data = field:subtitle
>     }
> 
>     10 = TEXT
>     10 {
>       # Properties for the link title here; probably something like:
> 
>       data = field:title
>     }

i didn't try your proposal but it´s similar to Peter's approach. his version 
was easier because you don't have to care about href-generation.

thank you anyways,

gregor



More information about the TYPO3-english mailing list