⚠️ Urgent! Active Attacks on MODX Revolution Sites Below Revolution 2.6.5
Subscribe: RSS
  • Hi Fbloom!

    i tried your answer, but it does only work in the other languages, not in the main language (web context)...

    <a href="[[~[[BabelTranslation? &resourceId=`425` &contextKey=`[[++cultureKey]]`]]]]">Link</a>


    has someone got a clue ?
    • Quote from: troubadour at Dec 16, 2013, 10:04 AM
      Hi Fbloom!

      i tried your answer, but it does only work in the other languages, not in the main language (web context)...

      <a href="[[~[[BabelTranslation? &resourceId=`425` &contextKey=`[[++cultureKey]]`]]]]">Link</a>


      has someone got a clue ?

      Hi Troubadour,

      sorry, this version of syntax is not working anymore try this:

      <a href="[[~[[BabelTranslation? &resourceId=`1` &contextKey=`[[*context_key]]`]]]]">link</a>


      Of course fill in your desired resourceID.

      Let me know if this is working for you.

      Cheers !
      • Perfect !
        thank you very much, I must admit i don't understand everything with babel.... and there is not so much things to read about how it works...

        Thanks again, have nice holidays !