[TYPO3] typolink not rendering ATagParams

Aji Yahya aji.yahya at gmail.com
Tue Sep 16 08:58:26 CEST 2008


Luis Flávio Seelig schrieb:
> Hi list,
> 
> I have a problem rendering this typolink. The link renders correctly but
> without the html class attribute.
> 
> The code:
> ---
> plugin.tt_news {
>    wrap1.stdWrap = TEXT
>    wrap1.stdWrap {
>       value =  
>       value.field = title
>       typolink.parameter = {$plugin.tt_news.singlePid}
>       typolink.additionalParams.data=register:newsAddParams
>       typolink.ATagParams = class="open"
>       typolink.useCacheHash = 1
>    }
> }
> ---
> The result (correct link, but without the class="open" attribute):
> ---
> <a href="index.php?id=397&amp;tx_ttnews[tt_news]=17&amp;tx_ttnews[backPid]=392&amp;cHash=b622625d2f"
> title="Title">&nbsp;</a>
> ---
> 
> I try with:
> ---
> plugin.tt_news {
>    wrap1.stdWrap = TEXT
>    wrap1.stdWrap {
>       value = &nbsp;
>       value.field = title
>       typolink.parameter = {$plugin.tt_news.singlePid} _self a_class
>       typolink.additionalParams.data=register:newsAddParams
>       typolink.useCacheHash = 1
>    }
> }
> ---
> but this render an A tag with the html class attribute wrapping the the
> link.
> 
> After read tsref and googling a lot, I can't find a clue. I'm doing
> something wrong? Any hint?
> 
> Thanks in advance.

Hello Luis,

how about if you add this line too:
typolink.ATagParams.insertData = 1

i didnt test it, but may be will help.

Regards
Johannes


More information about the TYPO3-english mailing list