We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16183
    • 1,390 Posts
    Nice...always happy when a solution is found grin
      • 24719
      • 194 Posts
      no worries.

      i made a mistake in the file path though. the file needs to be created at:

      assets/snippets/wayfinder/configs/languages.config.php

      instead.
        • 27305
        • 173 Posts
        Redman I got it working today, I had issues with database language setting but fixed that now, rather than changing the start id, I have excluded folders that contain the pages with different languages, because I use wayfinder to built my entire site menu, not just the international section.


        <?php
        switch ($_SESSION['whatLang'])
        {
        case 'chinese':
          $excludeDocs = '21,68';   // id of the chinese page
          break;
        case 'russian':
          $excludeDocs = '67,68';  // id of the russian page
          break;
        case 'English':
          $excludeDocs = '21,67';  // this could just be passed in as the &startId parameter
        }
        ?>


        Thanks for the help everyone.

        Simon
          I made my first site with modx
          ------------------------
          Shopping blog
          Sky+ HD