We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26555
    • 38 Posts
    I have set up multi-language site using the system variable cultureKey for switching the language (Revolution 2.0.3pl).
    The URLs are build up like this:
    http://www.example.com/de/my-page
    http://www.example.com/en/my-page

    What I want to do now is to integrate the cultureKey vaiable into the default [[~LINK_ID]] placeholder.
    Of course in template I could do sth like this:
    <a href="/[[++cultureKey]]/[[~LINK_ID]]">here you go</a>


    But I would like to call just the link placeholder.
    And the correct URLs should be generated with Wayfinder as well.
    How can I achieve this?
      • 26555
      • 38 Posts
      Any thoughts on this?
      What would be the way to go here.
        • 26555
        • 38 Posts
        I solved this issue through manually prefixing all my URLs with [[++cultureKey]].
        To /core/components/wayfinder/configs/default.inc.php I added the following line:
        <?php
        $rowTpl = '@CODE:<li[[+wf.classes]]><a href="/[[++cultureKey]]/[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>';
        ?>
          • 37330
          • 9 Posts
          Thanks for posting your response sebwebdev. This helped me a lot in my own problem with chunks. I didn't realize there was a [[++cultureKey]] placeholder.