We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2661
    • 53 Posts
    Quote from: mrhaw at Sep 01, 2009, 12:45 PM

    Yes! When testing I preview a unpublished doc (logged in as a manager user)

    <h3>myTV01</h3>
    <p>[*myTV01*]</p>
    <h3>myTV02</h3>
    <p>[*myTV02*]</p>
    <h3>myTV03</h3>
    <p>[*myTV03*]</p>
    <h3>Test1</h3>
    <p>[+phx:if=`[*myTV01*]`:ne=``:then=`<img src="[*myTV01*]" width="[*myTV02*]" />`:else=``+]</p>
    <h3>Test2</h3>
    <p>[*myTV01:ne=``:then=`<img src="[*myTV01*]" width="[*myTV02*]" />`:else=``*]</p>



    So what is the difference between Test1 and Test2? What does the "+phx:if=" portion of the code do in Test1 that it does in Test2? I understand the basic function. "ne" is "!=" or not equal to. So you are testing if the TV is there or not. If not, to not include the ALT tag.

    Sorry for the incessant questions on this one. If I can get this setup correctly, it will save me a lot of time down the road.
      • 2661
      • 53 Posts
      Sometimes I just need to shut up and try.

      It works like a charm Mrhaw! Thanks again!