[TYPO3-english] localization and tt_content.stdWrap.dataWrap
JoH asenau
info at cybercraft.de
Sat Sep 19 18:09:15 CEST 2009
>> I have 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> |
>>
>
> try setting
>
> tt_content.stdWrap.prepend >
>
> (You can use the Object Browser in templates module to figure out
> where such things are added)
Instead of erasing it, you can modify it according to the uids of your
localized records:
tt_content.stdWrap {
dataWrap = |
prepend >
prepend = COA
prepend {
10 = TEXT
10.dataWrap = <a id="c{field:uid}"><!-- ANCHOR --></a>
10.if.isFalse.field = _LOCALIZED_UID
20 = TEXT
20.dataWrap = <a id="c{field:_LOCALIZED_UID}"><!-- ANCHOR --></a>
20.if.isTrue.field = _LOCALIZED_UID
}
prefixComment = 1 | CONTENT ELEMENT,
uid:{field:_LOCALIZED_UID//field:uid}/{field:CType}
}
This way people can still link directly to a record on a page using #c123
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
TYPO3 workshops: http://workshops.eqony.com
More information about the TYPO3-english
mailing list