[TYPO3] Using subtitle in tmenu
Xavier Perseguers
typo3 at perseguers.ch
Fri Jul 18 15:18:56 CEST 2008
Hi,
> I have a TMENU like this:
>
> temp.menusez.1 = TMENU
> temp.menusez.1 {
> wrap = <ul> | </ul>
> # Normal state
> NO {
> ATagTitle.field = subtitle // title
> wrapItemAndSub = <li>|</li>
> }
> }
>
> and this return the list as:
>
> page 1 title
> page 2 title
> ...
>
> Now I would like to add the subtitle to the generated link, obtaining:
>
> page 1 title - page 1 subtitle
> page 2 title - page 2 subtitle
>
> as links (other than in the title attribute). Is this possible?
You may use something like that:
NO {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
10.wrap = | -
20 = TEXT
20.field = subtitle
}
}
HTH
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
More information about the TYPO3-english
mailing list