Copied to clipboard

Flag this post as spam?

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


  • Philip Hayton 23 posts 135 karma points
    Nov 26, 2019 @ 16:05
    Philip Hayton
    0

    MNTP XPath with multi-culture site

    Hi guys,

    We have a multi-culture build that has several sites.

    • EN
    • AU
    • FR
    • Etc...

    Each site has it's own collection of shareable content that can be 'picked' from nodes within that domain. The tree looks like this:

    • EN

      • Home (host and domain set here)
        • About
        • Contact
      • Shared Content
        • Widgets
          • Widget 1

        We have created a MNTP that uses XPath to resolve to the Shared Content folder for the current site:

        $site/sharedContent/widgets
        

        We expect this to resolve to the Widgets folder for the current culture. And well... it works for the first site, but for all other sites, it doesn't resolve to anything.

        I have tried trimming the selector right back to just $site, and it resolves to the correct root node. But, when I do this, all descendant nodes show in brackets, which makes me think that the current culture is not being passed to the MNTP XPath selector:

        enter image description here

        I've tried associating domains and cultures to the shared content node, but that doesn't seem to do anything.

        Has anyone else bumped into this? And if so how did you get around it?

        Any help is greatly appreciated.

        TIA

        Phil

  • Amir Khan 1199 posts 2567 karma points
    Nov 26, 2019 @ 20:44
    Amir Khan
    0

    Assuming there's cultures attached to the parent nodes? EN, FT, etc? Also what version are you using, I can try to reproduce it.

  • Philip Hayton 23 posts 135 karma points
    Nov 27, 2019 @ 22:07
    Philip Hayton
    0

    Hi Amir,

    Thanks for your response.

    Yeah the root nodes have cultures associated with them, and we're on version 8.2.2.

    Kind regards

    Phil

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies