[TYPO3] TMENU with title and subtitle as tooltip
Christopher
bedlamhotel at gmail.com
Wed Feb 1 18:23:37 CET 2006
Hi,
On 2/1/06, Gregor Kaczmarczyk <gregor at crazes.de> wrote:
> hi,
>
> i was diggin for hours, but didn´t found the correct solution...
>
> TS code for menu:
> #################
>
> lib.subnav = HMENU
> lib.subnav.entryLevel = 1
> lib.subnav.1 = TMENU
> lib.subnav.1 {
> noBlur = 1
> wrap = <ul>|</ul>
> NO {
> allWrap = <li>|</li>
> stdWrap.innerWrap.field = subtitle
> stdWrap.innerWrap.required = 1
> stdWrap.innerWrap.wrap = <span class="tooltip">|</span>
> }
> }
>
> lib.subnav.1.ACT < lib.subnav.1.NO
> lib.subnav.1.ACT = 1
> lib.subnav.1.ACT {
> ATagParams = class="active"
> }
>
> output code:
> ############
> <div id="subnav">
> <ul>
> <li><a href="#">Link 1</a></li>
> <li><a href="#" class="active">Link 2</a></li>
> <li><a href="#"><span class="tooltip">Tooltip 3</span>Link 3</a></li>
> <li><a href="#">Link 4</a></li>
> <li><a href="#">Link 5</a></li>
> </ul>
> </div>
>
> the problem is in "Link 3".
> how can i change the order of the links title and <span> with subtitle?
> the result should look like:
> ############################
> <div id="subnav">
> <ul>
> <li><a href="#">Link 1</a></li>
> <li><a href="#" class="active">Link 2</a></li>
> <li><a href="#">Link 3<span class="tooltip"> Tooltip 3</span></a></li>
> <li><a href="#">Link 4</a></li>
> <li><a href="#">Link 5</a></li>
> </ul>
> </div>
>
> can anybody help?
>
Why not try:
ATagTitle.field = title // subtitle [1]
This will use the value of the title field in the pages table for the
current page in the title attribute of the link and fall back on the
subtitle field.
-Christopher
[1] http://typo3.org/documentation/document-library/doc_core_tsref/TMENUITEM/
More information about the TYPO3-english
mailing list