Copied to clipboard

Flag this post as spam?

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


  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Nov 04, 2011 @ 10:20
    Dave Woestenborghs
    0

    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

  • Martin Rud 249 posts 980 karma points c-trib
    Nov 04, 2011 @ 20:11
    Martin Rud
    0

     

    Hi dawoe,

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

     

    Regards,
    Martin 

     

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Nov 07, 2011 @ 09:37
    Dave Woestenborghs
    0

    Hi Martin,

    This exactly what I needed. Thanks

Please Sign in or register to post replies

Write your reply to:

Draft