We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34616
    • 14 Posts
    I’ve upgrade to revo from evo. Switched to If, from Phx.

    Confused on getting code to work I had in a template.

    [[+phx:if=`[[*top_image]]`:is=``:then=``:else=`
    <div id="slide_wrap">
    <img src="[[*top_image]]" alt="[[*pagetitle]]">
    </div>`]]

    I’ve came up with...

    [[If? &subjuct=`[[*top_image]]` &operator=`equals` &operand=`` &then=`` &else=`
    <div id="slide_wrap">
    <img src="[[*top_image]]" alt="[[*pagetitle]]">
    </div>`]]

    Now I know this is wrong, b\c it doesn’t work. Looking for some guidance though.

    Thanks
      • 4172
      • 5,888 Posts
      Quote from: Cromzinc at Jul 24, 2011, 03:12 PM

      I’ve upgrade to revo from evo. Switched to If, from Phx.

      Confused on getting code to work I had in a template.

      [[+phx:if=`[[*top_image]]`:is=``:then=``:else=`
      <div id="slide_wrap">
      <img src="[[*top_image]]" alt="[[*pagetitle]]">
      </div>`]]

      I’ve came up with...

      [[If? &subjuct=`[[*top_image]]` &operator=`equals` &operand=`` &then=`` &else=`
      <div id="slide_wrap">
      <img src="[[*top_image]]" alt="[[*pagetitle]]">
      </div>`]]

      Now I know this is wrong, b\c it doesn’t work. Looking for some guidance though.

      Thanks

      try:

      [[If?
         &subject=`[[*top_image]]`
         &operator=`!empty`
         &then=`
             <div id="slide_wrap">
                 <img src="[[*top_image]]" alt="[[*pagetitle]]">
             </div>`
      ]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 34616
        • 14 Posts
        ohhh my god...
        Worked perfectly, to easy. Thanks very much!