Im developing a site which should be on two languages.
The customer have a section with products that I display using xslt.
Now I want the products to be displayed in both language trees. The problem is that I dont know how to get the nodes from one tree to the other? Should I create the product node with its subnodes outside the language tree and the traverse up to get those nodes? If then, how can i display the product node in my topnavigation?
Thinking about it, I'd think you should be able to work something like this out:
You're backoffice:
1. Create bilingual document types for all products.
2. Create bilingual document types for the product categorys
3. Link the products to categories using an ultimatepicker
Part that visitors can see:
4. Create actual pages for the categories in all languages (in the part of the website that is invisable to the user) These are the nodes that show up in the navigation.
5. Add macro's that list the products in the 'current' category in the current site's language
Then I created a new document type in the english language tree with an ultimate picker with parentid of the Spare parts node. I added a new node Gearboxes in the englisg spare parts section and in the ultimate picker I clicked the gearboxes node from the swedish part.
The I just added a macro listing the childnodes from the swedish section :)
Show products on site with multiple languages
Hi!
Im developing a site which should be on two languages.
The customer have a section with products that I display using xslt.
Now I want the products to be displayed in both language trees.
The problem is that I dont know how to get the nodes from one tree to the other?
Should I create the product node with its subnodes outside the language tree and the traverse up to get those nodes? If then, how can i display the product node in my topnavigation?
Thinking about it, I'd think you should be able to work something like this out:
You're backoffice:
1. Create bilingual document types for all products.
2. Create bilingual document types for the product categorys
3. Link the products to categories using an ultimatepicker
Part that visitors can see:
4. Create actual pages for the categories in all languages (in the part of the website that is invisable to the user) These are the nodes that show up in the navigation.
5. Add macro's that list the products in the 'current' category in the current site's language
Thanks for your help Rik!
I solved it this way:
I created the default language (swedish) with all the products ordered like this:
- Spare parts
- Gearboxes
- gearbox 1
- gearbox 2
- Engines
- engine 1
- engine 2
Then I created a new document type in the english language tree with an ultimate picker with parentid of the Spare parts node.
I added a new node Gearboxes in the englisg spare parts section and in the ultimate picker I clicked the gearboxes node from the swedish part.
The I just added a macro listing the childnodes from the swedish section :)
is working on a reply...