Multilanguage site and uComponents Multi-node picker
Hi,
I'm just starting development on a new multilanguage site.
The structure I had in mind is the following :
- Content - English site - Home - My webpages - Datafolder - Snippets - Carrousel - etc
- Spanish site - Home - My webpages - Datafolder - Snippets - Carrousel - etc
Over time the customer wants to add new languages.
On some of my doctypes I want to use the uComponents Multi-Nodepicker to pick items in the datafolder. Because this datattype needs a startnode I see 2 options :
1. Create doctypes, templates, macro's etc...per language => not user friendly, developer required to create new language 2. Move the datafolder out of the site root and move to the same level as the website and create a subfolder per language. I see problems here setting permissions because users can only have one start node
This should do the job: Go to "Developer" section and edit your datatype:
Choose "XPath Expression" in "Node selection type" and "From Current" in "XPath type"
And in "XPath expression" insert the following: ancestor-or-self::* [@isDoc][name()='siteFolder']/*[name()='Datafolder']
(assuming that "siteFolder" is the document type of your nodes "English site" and "Spanish site" and that "Datafolder" is the document type of your nodes with the names "Datafolder")
Multilanguage site and uComponents Multi-node picker
Hi,
I'm just starting development on a new multilanguage site.
The structure I had in mind is the following :
- Content
- English site
- Home
- My webpages
- Datafolder
- Snippets
- Carrousel
- etc
- Spanish site
- Home
- My webpages
- Datafolder
- Snippets
- Carrousel
- etc
Over time the customer wants to add new languages.
On some of my doctypes I want to use the uComponents Multi-Nodepicker to pick items in the datafolder. Because this datattype needs a startnode I see 2 options :
1. Create doctypes, templates, macro's etc...per language => not user friendly, developer required to create new language
2. Move the datafolder out of the site root and move to the same level as the website and create a subfolder per language. I see problems here setting permissions because users can only have one start node
Anybody got suggestions
Hi dawoe,
This should do the job: Go to "Developer" section and edit your datatype:
(assuming that "siteFolder" is the document type of your nodes "English site" and "Spanish site" and that "Datafolder" is the document type of your nodes with the names "Datafolder")
Regards,
Martin
Hi Martin,
This exactly what I needed. Thanks
is working on a reply...