[opencms-dev] Locale macro in XSD schema
Tobias Karrer
kartobi at gmail.com
Fri Feb 15 17:47:59 CET 2013
Better, because editable in OpenCms, would be to define the Properties
"category-title-de", "category-title-en" for each category.
To print out the categegory names in the jsp template:
<cms:property name="category-title-${locale}" file="${yourCategory}"/>
(site root needs to be removed from your category if you're using the
_categories-folder in /sites/default/ )
Works fine when "english-only" category names ("Title"-Property of the
category folder) inside the editor are ok.
Best,
Tobias
Am 15.02.2013 15:58, schrieb Rüdiger Kurz:
> Re: Locale macro in XSD schema
> Hi,
>
> think you are right with your assumption. What you're trying to archive
> is localization of categories. I might be wrong, but I think that
> localizing categories,tags,facets,... does not make that much sense,
> since the 'tags' should be the same for one content. (Categories are
> assigned to VFS resources not to the real-localized content).
>
> However, I would try to use the same taxonomy for all languages and then
> localize its output at rendering time: The messages.properties could
> have entries per category path, using dots instead slashes and then on
> JSP side you will replace the slashes pf the category path with dotes
> and try then to receive the localized value.
>
> What do you think?
>
> Am 15.02.2013 16:49, schrieb Arturo Martín Lladó:
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130215/2961e0a3/attachment.htm>
More information about the opencms-dev
mailing list