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

    i try to set x-default link with Babel in head. Here is my idea:

    If EN-Site exist, then show me the EN-Url, else show me the DE-URL. Thats my code:

    [[~[[BabelTranslation? &contextKey=`en`
         :is=``
         :then=`[[~[[BabelTranslation? &contextKey=`de`]]`
         :else=`[[~[[BabelTranslation? &contextKey=`en`]]`
    ]]



    But something is wrong, i get wrong url's with that. Somebody an idea?


    -------------------------
    MODx Revolution 2.6.0-pl
    PHP: 7.0
    MySQL: 5.6
    Babel: 3.0.0-pl