Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fredrik Esseen 610 posts 906 karma points
    Sep 15, 2010 @ 14:10
    Fredrik Esseen
    0

    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?

  • Rik Helsen 670 posts 873 karma points
    Sep 15, 2010 @ 16:19
    Rik Helsen
    0

    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

     

  • Fredrik Esseen 610 posts 906 karma points
    Sep 16, 2010 @ 13:41
    Fredrik Esseen
    0

    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 :)

     

     

Please Sign in or register to post replies

Write your reply to:

Draft