[TYPO3-core] RFC: css_styled_content & localization
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Mon Dec 4 14:58:33 CET 2006
Dmitry Dulepov schrieb:
> Hi!
>
> This was posted long time ago but still actual. The problem was that it
> is impossible to reference localized content elements (css styled
> content produces local anchors only to non-localized elements). It was
> decided not to fix this for 4.0.1 but I want to bring this again now.
>
> See below Bernhard's change and mine alternative version even below.
> They both change TS code for css styled content.
>
> I hope this will be solved finally. It is really a problem for
> localization.
>
> 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
> + }
>
> Bernhard's is better I think.
>
> Waiting for two +1s ;)
This wasn't resolved, right?
I don't like that the TS uses two stdWrap properties. If "prepend" or
"preCObject" is used then "dataWrap" can be freed for other local uses.
prepend = TEXT
prepend {
value = <a id="c{field:uid}"></a> |
stdWrap.append = TEXT
stdWrap.append {
setContentToCurrent = 1
field = _LOCALIZED_UID
required = 1
}
insertData = 1
}
Masi
More information about the TYPO3-team-core
mailing list