We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!

Answered broken link

  • discuss.answer
    • 52938
    • 10 Posts
    Quote from: Steeve at Oct 30, 2016, 04:55 AM
    Quote from: bolingfrog at Oct 30, 2016, 04:09 AM
    <!--?php
    # OnHandleRequest
    if($modx--->context->get('key') != "mgr"){
        /* grab the current langauge from the cultureKey request var */
        switch ($_REQUEST['cultureKey']) {
    	    case 'de':
                /* switch the context */
                $modx->switchContext('de');
                break;
            case 'ru':
                /* switch the context */
                $modx->switchContext('ru');
                break;
            case 'en':
                /* switch the context */
                $modx->switchContext('en');
                break;
            default:
                /* Set the default context here */
                $modx->switchContext('web');
                break;
        }
        /* unset GET var to avoid
         * appending cultureKey=xy to URLs by other components */
        unset($_GET['cultureKey']);
    }

    So you got 4 context DE, RU, EN and WEB.
    Everything is right for me! I didn't see your context setting!
    When did the problem appear ?

    What exactly do you need to see? The problem just appeared when I made some changes for the english language pages. I can't remember when exactly it happened.
      • 28432
      • 372 Posts
      Quote from: bolingfrog at Oct 30, 2016, 05:00 AM
      What exactly do you need to see? The problem just appeared when I made some changes for the english language pages. I can't remember when exactly it happened.

      I think have you change alias or isfolder because all other pages are display normally.
      Or maybe you break the link between the different language.
        • 52938
        • 10 Posts
        Quote from: Steeve at Oct 30, 2016, 05:05 AM
        Quote from: bolingfrog at Oct 30, 2016, 05:00 AM
        What exactly do you need to see? The problem just appeared when I made some changes for the english language pages. I can't remember when exactly it happened.

        I think have you change alias or isfolder because all other pages are display normally.
        Or maybe you break the link between the different language.

        Alias is still the same, I didn't change it. Actually I did change back and forth after the problem occured ...
          • 28432
          • 372 Posts
          Have you check the link between the different language?
            • 52938
            • 10 Posts
            Quote from: Steeve at Oct 30, 2016, 04:55 AM
            Quote from: bolingfrog at Oct 30, 2016, 04:09 AM

            So you got 4 context DE, RU, EN and WEB.
            Everything is right for me! I didn't see your context setting!
            When did the problem appear ?

            Hi, I solved the problem this way that I renamed the alias. Why the old alias suddenly stopped working - I have no idea. Thanks anyway!
              • 28432
              • 372 Posts
              Can you make the post as answered please?