[TYPO3-core] RFC: css_styled_content & localization
Michael Stucki
michael at typo3.org
Sun Jul 30 23:25:36 CEST 2006
Hi Dmitry,
I just had a deeper look at this. In my opinion, this will cause other
problems and needs a much more difficult solution.
What I did was this:
- configure config.sys_language_overlay = 1
- set mod.web_layout.defLangBinding = 1 in Page TSconfig (not relevant)
- in the "Default" translation, edit a content element, add a link to #c123
- no translation for this element
As a result of this, the link to #c123 will work properly at the translated
website, while it would not have worked if the localized content UID would
have been used (= your patch).
Since you will never know which element is referenced by the user, I think
the most proper solution is to add additional anchors for each translation
of a record, e.g.
<a id="c1"></a><a id="c2"></a><a id="c3"></a>
This is the record with UID 1, translations at UID 2 and 3.
Might be tricky to implement in TypoScript... :-)
- michael
> Hi!
>
> This is SVN patch request.
>
> Branches: 4-0 and trunk
>
> Problem: CSS_styled_content system extension does not take localization
> into account while wrapping content elements. Thus local (current page)
> links will lead to nothing (they will point to non-localized version of
> content element).
>
> Solution: one line fixer - change dataWrap to use _LOCALIZED_UID field
> and if it is empty, use uid.
>
> Hope this get passed through quickly since it is essential for building
> properly localized web sites.
>
> Dmitry.
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list