[TYPO3] inserting attributes into <a>

Christopher Torgalson bedlamhotel at gmail.com
Tue May 6 21:25:59 CEST 2008


Hi,

On Tue, May 6, 2008 at 9:18 PM, sergio <sergio at village-buzz.com> wrote:
> thanks!
>
>  i added this:
>
>                         ACT
>                         {
>                                 linkWrap =  |
>                                 wrapItemAndSub = <li> | </li>
>                                 ATagParams = class="current"
>                                 ACT = 1
>                         }
>
>  and the result is closer, but not all the way..
>
>  what i end up with is the menu displaying, BUT.. the active page is
>  not enclosed in <li> tags.. so it is just an <a> element hanging out
>  on it's own...
>
>  i have moved ACT=1 around a bit, but the results are awlways the same..


Check around the web for HMENU and TMENU samples (maybe search out the
Typoscript by Example manual for a start)...you'll find the following
structure a lot. The ACT part copies the entirety of the NO part, and
the additional ATagParams property (and any others) adds the class to
the links output by the ACT object only.

NO {
  ...
  ...
  ...
}

ACT < .NO
ACT {
  ATagParams = class="foo"
}

-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list