[TYPO3] Using subtitle in tmenu

Tyler Kraft tyler.kraft at netefficiency.co.uk
Fri Jul 18 16:51:49 CEST 2008


The only problem is if you don't have a subtitle entered you'll still 
get the hyphen.

NO {
      stdWrap.cObject = COA
      stdWrap.cObject {
          10 = TEXT
          10.field = title


          20 = TEXT
          20.field = subtitle
          20.wrap =  - |
20.required = 1

      }

Will fix that I believe

hth


Xavier Perseguers wrote:
> 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 = |&nbsp;-&nbsp;
>        
>         20 = TEXT
>         20.field = subtitle
>     }
> }
> 
> HTH
> 


More information about the TYPO3-english mailing list