We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18830
    • 161 Posts
    Is there a way to combine Maxigallery and PHx?

    I tried this without luck:

     [+phx:if=`[[lang]]`:is=`de`:then=`[+maxigallery.picture.description:htmlent+]`:else=`[+maxigallery.picture.title:htmlent+] `+]
    


    I want to use something like this for a multi language site. The description field could take the german, the title field the english caption.
      • 7923
      • 4,213 Posts
      PHx is already supported in MaxiGallery templates.. try:

      [[lang:is=`de`:then=`[+maxigallery.picture.description:htmlent+]`:else=`[+maxigallery.picture.title:htmlent+]`]]


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 18830
        • 161 Posts
        No, Doze, there is no output at all. sad

        I tried some other in vain:

        [+lang .... +]
        
        [+maxigallery:lang ... +]
        


          • 7923
          • 4,213 Posts
          is that "lang" a snippet?


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 18830
            • 161 Posts
            Yes, it’s a snippet. I just thought of it, that I should told you so.
              • 7923
              • 4,213 Posts
              This works (tried it):

              [+phx:if=`[[lang]]`:is=`de`:then=`[+maxigallery.picture.descr:htmlent+]`:else=`[+maxigallery.picture.title:htmlent+]`+]



                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 18830
                • 161 Posts
                I am an idiot, using description instead of descr. Thank you, Doze.