| Author |
Message |
Guest
|
Posted:
Mon Jan 17, 2005 6:14 pm Post subject:
Multiple globalization settings in a single MCMS site |
|
|
Hi, in asp.net if I want to have separate globalization implementations
for the same website I can easily adjust the culture and uiCulture in
the web.config.
For instance:
www.site.com/en
www.site.com/de
could share common values by having:
www.site.com/web.config
and then have separate culture implementations by implementing:
www.site.com/en/web.config
www.site.com/de/web.config
How do I achieve the same using MCMS?
My site is at:
/Channels/www.site.com/
and I have 2 channels for the different languages:
/Channels/www.site.com/de/
/Channels/www.site.com/en/
In the Visual Studio web project I have created 2 physical directories
(en & de) and added a web.config to each of them however it appears
that the MCMS postings within their respective channels are only aware
of the root web.config file.
Is this a limitation of MCMS or am I doing something wrong?
As a workaround I thought of creating custom properies for each posting
that set the appropriate culture information.
In some cases we will have www.site.de and www.site.co.uk (so no
problem there) however for many situations we need to have the
cultures/language implemented as a subirectory.
Thanks in advance. |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Mon Jan 17, 2005 6:14 pm Post subject:
Re: Multiple globalization settings in a single MCMS site |
|
|
You're welcome!
:-)
<j.drerup@syzygy.net> wrote in message
news:1105981231.627500.213000@c13g2000cwb.googlegroups.com...
| Quote: | Thanks Stefan.
Thanks for the clarification, you're correct, this has become more of
an ASP.NET question (as postings execute as physical aspx files -
something I had overlooked when posting my initial question...).
The solution in ASP.NET is to use a web.config, set the culture using
page directives or set them progmatically. I'm going to do this within
each template - this is how I would do it in a 'standard non-mcms site'
and it will also achieve my goal.
Thanks for your time and help.
|
|
|
| Back to top |
|
 |
Guest
|
Posted:
Mon Jan 17, 2005 6:14 pm Post subject:
Re: Multiple globalization settings in a single MCMS site |
|
|
Thanks Stefan.
Thanks for the clarification, you're correct, this has become more of
an ASP.NET question (as postings execute as physical aspx files -
something I had overlooked when posting my initial question...).
The solution in ASP.NET is to use a web.config, set the culture using
page directives or set them progmatically. I'm going to do this within
each template - this is how I would do it in a 'standard non-mcms site'
and it will also achieve my goal.
Thanks for your time and help. |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Mon Jan 17, 2005 6:14 pm Post subject:
Re: Multiple globalization settings in a single MCMS site |
|
|
Hi J,
actually this is not an MCMS question but an ASP.NET question.
The templates are being executed in ASP.NET and thats the reason why the
web.config related to this template is being used.
I don't think that ASP.NET allows to dynamically switch these settings but
you could double check by posting to an ASP.NET related newsgroup.
Cheers,
Stefan.
<j.drerup@syzygy.net> wrote in message
news:1105976282.699596.77310@z14g2000cwz.googlegroups.com...
| Quote: | Thanks for both of your replies.
Stefan - thanks for your suggestion, it does achieve the desired
result, however we want to reuse a single set of 'master' templates
across the various language implementations. Creating separate
template files per site is not something we would like to do.
Spencer - thanks for your suggestion, however it is not exactly what we
want to achieve either.
In addition, I've read through the whitepaper "Creating Multilingual
Web Sites with Microsoft Content Management Server 2002" however none
of the suggested approaches really fit 100% with what we want to
achieve.
Maybe I'm asking too much from my templates - I want many of them to be
very generic and versatile supporting multiple languages and used
within various incarnations. Sometimes they will be used within a site
that supports only one language, sometimes they will be used within
sub-directories of a site that must support multiple languages...
At present I have met what I need by implementing a 'Culture' and
'uiCulture' property to each template and then checking & setting this
progmatically. I'm going to keep moving ahead with this approach and
will post again if I have any further challenges.
Thanks.
Justin Drerup.
www.syzygy.net
|
|
|
| Back to top |
|
 |
Guest
|
Posted:
Mon Jan 17, 2005 6:14 pm Post subject:
Re: Multiple globalization settings in a single MCMS site |
|
|
Thanks for both of your replies.
Stefan - thanks for your suggestion, it does achieve the desired
result, however we want to reuse a single set of 'master' templates
across the various language implementations. Creating separate
template files per site is not something we would like to do.
Spencer - thanks for your suggestion, however it is not exactly what we
want to achieve either.
In addition, I've read through the whitepaper "Creating Multilingual
Web Sites with Microsoft Content Management Server 2002" however none
of the suggested approaches really fit 100% with what we want to
achieve.
Maybe I'm asking too much from my templates - I want many of them to be
very generic and versatile supporting multiple languages and used
within various incarnations. Sometimes they will be used within a site
that supports only one language, sometimes they will be used within
sub-directories of a site that must support multiple languages...
At present I have met what I need by implementing a 'Culture' and
'uiCulture' property to each template and then checking & setting this
progmatically. I'm going to keep moving ahead with this approach and
will post again if I have any further challenges.
Thanks.
Justin Drerup.
www.syzygy.net |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Mon Jan 17, 2005 6:14 pm Post subject:
Re: Multiple globalization settings in a single MCMS site |
|
|
Hi J,
the directory of the template is relevant.
If you have different template in the different directories with the
different web.configs, then this will work.
But you need to ensure that you are using different templates in the
different parts of your site.
Cheers,
Stefan.
<j.drerup@syzygy.net> wrote in message
news:1105964845.659487.71360@c13g2000cwb.googlegroups.com...
| Quote: | Hi, in asp.net if I want to have separate globalization implementations
for the same website I can easily adjust the culture and uiCulture in
the web.config.
For instance:
www.site.com/en
www.site.com/de
could share common values by having:
www.site.com/web.config
and then have separate culture implementations by implementing:
www.site.com/en/web.config
www.site.com/de/web.config
How do I achieve the same using MCMS?
My site is at:
/Channels/www.site.com/
and I have 2 channels for the different languages:
/Channels/www.site.com/de/
/Channels/www.site.com/en/
In the Visual Studio web project I have created 2 physical directories
(en & de) and added a web.config to each of them however it appears
that the MCMS postings within their respective channels are only aware
of the root web.config file.
Is this a limitation of MCMS or am I doing something wrong?
As a workaround I thought of creating custom properies for each posting
that set the appropriate culture information.
In some cases we will have www.site.de and www.site.co.uk (so no
problem there) however for many situations we need to have the
cultures/language implemented as a subirectory.
Thanks in advance.
|
|
|
| Back to top |
|
 |
Spencer Harbar [MVP]
Guest
|
Posted:
Mon Jan 17, 2005 6:14 pm Post subject:
Re: Multiple globalization settings in a single MCMS site |
|
|
One approach is to use a (or multiple) Resource Manager for localisation-
this is demonstrated in the WoodgroveNet c# sample.
hth
Spence
www.mcmsfaq.com
<j.drerup@syzygy.net> wrote in message
news:1105964845.659487.71360@c13g2000cwb.googlegroups.com...
| Quote: | Hi, in asp.net if I want to have separate globalization implementations
for the same website I can easily adjust the culture and uiCulture in
the web.config.
For instance:
www.site.com/en
www.site.com/de
could share common values by having:
www.site.com/web.config
and then have separate culture implementations by implementing:
www.site.com/en/web.config
www.site.com/de/web.config
How do I achieve the same using MCMS?
My site is at:
/Channels/www.site.com/
and I have 2 channels for the different languages:
/Channels/www.site.com/de/
/Channels/www.site.com/en/
In the Visual Studio web project I have created 2 physical directories
(en & de) and added a web.config to each of them however it appears
that the MCMS postings within their respective channels are only aware
of the root web.config file.
Is this a limitation of MCMS or am I doing something wrong?
As a workaround I thought of creating custom properies for each posting
that set the appropriate culture information.
In some cases we will have www.site.de and www.site.co.uk (so no
problem there) however for many situations we need to have the
cultures/language implemented as a subirectory.
Thanks in advance.
|
|
|
| Back to top |
|
 |
|
|
|
|