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

    This is the code I’m curently using for my phx statement

    [+phx:if=`[*pdf_link*]`:is=`0`:then=``:else=`[*pdf_link*]`+]
    


    this works fine, but is it possible to use html code in the ’else’ parameter for example if I wanted the [*pdf_link*] to show in a table?

    thanks

    Lisa
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      Yes, you can do:

      [+phx:if=`[*pdf_link*]`:is=``:then=``:else=`<a href="[*pdf_link*]">pdf icon...</a>`+]


      You can even nest phx calls.
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting