Discussion:
[opencms-dev] detail pages for multiple language 9.01 version
月的第四夜
2014-10-08 03:13:17 UTC
Permalink
Hi everyone,

I have a question for detail pages, for now I set .config for detail page
in cn/sc/news/.
it's ok I have en language and zh_CN language.
but I don't know how to use detail pages generate another language for same
article file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20141008/3671d789/attachment.html>
Filip Kratochvil
2014-10-08 07:31:08 UTC
Permalink
Hi,



you need to have 2 subfolders in your site for every languange, eg:

/en/

/cn/



Every language subfolder should set Property called ?locale?. Than create two separates .config files in every language folder.



You folder structure can be:

/.content/ here will be placed your xml contents

/en/.content/.config here set detail page for en

/cn/.content/.config here set detail page for cn



I hope it helps you.



--
Regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail: <mailto:filip.kratochvil at nelasoft.cz> filip.kratochvil at nelasoft.cz
Web: <http://www.nelasoft.cz> www.nelasoft.cz



From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of ?????
Sent: Wednesday, October 08, 2014 5:13 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] detail pages for multiple language 9.01 version



Hi everyone,



I have a question for detail pages, for now I set .config for detail page in cn/sc/news/.

it's ok I have en language and zh_CN language.

but I don't know how to use detail pages generate another language for same article file.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20141008/6981a42d/attachment.html>
月的第四夜
2014-10-11 02:14:50 UTC
Permalink
hi filip,
thank you, are you using copy as siblings? or just copy as new resource.

On Wed, Oct 8, 2014 at 3:31 PM, Filip Kratochvil <
Post by Filip Kratochvil
Hi,
/en/
/cn/
Every language subfolder should set Property called ?locale?. Than create
two separates .config files in every language folder.
/.content/ here will be placed your xml contents
/en/.content/.config here set detail page for en
/cn/.content/.config here set detail page for cn
I hope it helps you.
--
Regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail: filip.kratochvil at nelasoft.cz
Web: www.nelasoft.cz
opencms-dev-bounces at opencms.org] *On Behalf Of *?????
*Sent:* Wednesday, October 08, 2014 5:13 AM
*To:* opencms-dev at opencms.org
*Subject:* [opencms-dev] detail pages for multiple language 9.01 version
Hi everyone,
I have a question for detail pages, for now I set .config for detail page in cn/sc/news/.
it's ok I have en language and zh_CN language.
but I don't know how to use detail pages generate another language for same article file.
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20141011/fcf2a211/attachment.html>
Filip Kratochvil
2014-10-11 13:49:17 UTC
Permalink
Hi,



xmlcontents are in ?global? /.content/ folder, so you don?t need to copy them. Containerpages and .congif files can be copied as syblings, but it?s not necessary (we don?t use syblings often from OpenCms 9 because containerpages are usualy created using ADE (Advanced direct edit)).



--
Regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail: filip.kratochvil at nelasoft.cz
Web: www.nelasoft.cz



From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of ?????
Sent: Saturday, October 11, 2014 4:15 AM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] detail pages for multiple language 9.01 version



hi filip,

thank you, are you using copy as siblings? or just copy as new resource.



On Wed, Oct 8, 2014 at 3:31 PM, Filip Kratochvil <filip.kratochvil at nelasoft.cz> wrote:

Hi,



you need to have 2 subfolders in your site for every languange, eg:

/en/

/cn/



Every language subfolder should set Property called ?locale?. Than create two separates .config files in every language folder.



You folder structure can be:

/.content/ here will be placed your xml contents

/en/.content/.config here set detail page for en

/cn/.content/.config here set detail page for cn



I hope it helps you.



--
Regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail: filip.kratochvil at nelasoft.cz
Web: www.nelasoft.cz



From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of ?????
Sent: Wednesday, October 08, 2014 5:13 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] detail pages for multiple language 9.01 version



Hi everyone,



I have a question for detail pages, for now I set .config for detail page in cn/sc/news/.

it's ok I have en language and zh_CN language.

but I don't know how to use detail pages generate another language for same article file.


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20141011/195e2925/attachment.html>
Loading...