Bug #16412
closed
Links to localized elements do not function
Added by Dmitry Dulepov about 18 years ago.
Updated almost 14 years ago.
Category:
Content Rendering
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
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_UID
The 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
+ }
-----------------------------------
Core team did not decide what to do. Deassigning from myself.
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.
This bug is solved in newer TYPO3 versions with the stdWrap.prepend as described in the first comment.
Also available in: Atom
PDF