Discussion:
[TYPO3] typolink not rendering ATagParams
Luis Flávio Seelig
2008-09-16 02:44:49 UTC
Permalink
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.
--
Luis Fl?vio Seelig
lflavios at gmail.com
----
Linux User #363919
Aji Yahya
2008-09-16 06:58:26 UTC
Permalink
Post by Luis Flávio Seelig
Hi list,
I have a problem rendering this typolink. The link renders correctly but
without the html class attribute.
---
plugin.tt_news {
wrap1.stdWrap = TEXT
wrap1.stdWrap {
value = &nbsp;
value.field = title
typolink.parameter = {$plugin.tt_news.singlePid}
typolink.additionalParams.data=register:newsAddParams
typolink.ATagParams = class="open"
typolink.useCacheHash = 1
}
}
---
---
<a href="index.php?id=397&amp;tx_ttnews[tt_news]=17&amp;tx_ttnews[backPid]=392&amp;cHash=b622625d2f"
title="Title">&nbsp;</a>
---
---
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
Dmitry Dulepov [typo3]
2008-09-16 07:11:01 UTC
Permalink
Hi!
Post by Aji Yahya
typolink.ATagParams.insertData = 1
i didnt test it, but may be will help.
His ATagParams has no "data" in the sense that insertData understands.

tt_news in certain cases replaces ATagParams on links. I do not have time to check this partcular link but it is most likely the reason.
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/debugging_symlinked_typo3_files_with_komodo_ide_on_mac/
Luis Flávio Seelig
2008-09-17 07:12:55 UTC
Permalink
Sorry, I forgot to change the subject...

There a open bug (or request for feature) in tx_ttnews:
http://bugs.typo3.org/view.php?id=6397

"0006397: Switch from pi_linkTP_keepPIvars to typolink"

Dmitry, as always, is right: every single link is overrided by tt_news and
changed to something like this "<a href='link' title='title_of_news'> </a>",
and that's it.

Thanks to all
Johannes,
thanks for the attention.
and
Dmitry,
thanks for the hint. I'll dig into tt_news code and try to see what's
happening.
Best regards
--
Luis Fl?vio Seelig
lflavios at gmail.com
----
Linux User #363919
------------------------------
Message: 8
Date: Tue, 16 Sep 2008 10:11:01 +0300
From: "Dmitry Dulepov [typo3]" <dmitry at typo3.org>
Subject: Re: [TYPO3] typolink not rendering ATagParams
To: typo3-english at lists.netfielders.de
<mailman.1.1221549061.13308.typo3-english at lists.netfielders.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi!
Post by Aji Yahya
typolink.ATagParams.insertData = 1
i didnt test it, but may be will help.
His ATagParams has no "data" in the sense that insertData understands.
tt_news in certain cases replaces ATagParams on links. I do not have time
to check this partcular link but it is most likely the reason.
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
http://typo3bloke.net/post-details/debugging_symlinked_typo3_files_with_komodo_ide_on_mac/
--
Luis Fl?vio Seelig
lflavios at gmail.com
----
Linux User #363919
Loading...