Bug #16412
closedLinks to localized elements do not function
0%
Description
If page should contain a link to localaized record from tt_content, this link in fact will always point to non-localized (non-overlayed) version. Problem is in definition of tt_content.stdWrap.dataWrap. Now it contains:
dataWrap = <a id="c{field:uid}"></a> |
but should be:
dataWrap = <a id="c{field:_LOCALIZED_UID // field:uid}"></a> |
(issue imported from #M3952)
Files
Updated by Dmitry Dulepov almost 18 years ago
Latest version (from e-mail):
-----------------------------------
Bernhard Kraft wrote:
innerWrap2 = | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/pi1/locallang.php:label.toTop}</a></p>
innerWrap2.insertData = 1
innerWrap2.fieldRequired = linkToTop
- like before:
dataWrap = <a id="c{field:uid}"></a> |
- new code:
prepend = TEXT
prepend.dataWrap = <a id="c{field:_LOCALIZED_UID}"></a>
prepend.if.isTrue.field = _LOCALIZED_UIDThe new code will "prepend" the cObject which is defined. "prepend" happens in stdWrap directly after dataWrap
so the localized-uid anchor will be before the original one.
Or mine (after dataWrap):
+ preCObject = TEXT
+ preCObject {
+ setContentToCurrent = 1
+ field = _LOCALIZED_UID
+ required = 1
+ }
-----------------------------------
Updated by Dmitry Dulepov over 16 years ago
Core team did not decide what to do. Deassigning from myself.
Updated by Darko Jr. Gonzalez about 15 years ago
TYPO3 4.2.8 and
sys_language_mode = content_fallback
sys_language_overlay = 1 or sys_language_overlay = hideNonTranslated
Folks, Is this related to
tt_content.stdWrap.dataWrap >
not working for localized pages?
Because it doesnt work on my end when I try to erase tt_content.stdWrap.dataWrap = <a id="c{field:uid}"></a> |
It works for the primary language, L=0, the default one, but not for the localized.
Updated by Susanne Moog about 15 years ago
This bug is solved in newer TYPO3 versions with the stdWrap.prepend as described in the first comment.
Updated by Ernesto Baschny about 15 years ago
This has been commited 19.1.2007 by Dmitry to the core, so it has been in since the release of TYPO3 v4.1 (beta3). See rev. 1905:
http://forge.typo3.org/repositories/diff/typo3v4-core?rev=1905