We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9994
    • 133 Posts
    I have made some js image slider. I preview some Template Variable images.

    This works:
    <li>[*project_foto_01*]</li>

    But i’d like to have to show nothing when there is no image, i tried this:
    [+phx:if=`[*project_foto_01*]`:is=``:then=``:else=`[*project_foto_01*]</li>`*]+]
    [*project_foto_01:ne=``:then=`<li><img src="[*project_foto_01*]" /></li>`*]


    Can anyone show me the correct code? phx is installed.
      Best CMS eva!
      • 36926
      • 701 Posts
      Quote from: fourroses at Oct 23, 2009, 03:09 AM


      But i’d like to have to show nothing when there is no image, i tried this:
      [+phx:if=`[*project_foto_01*]`:is=``:then=``:else=`[*project_foto_01*]</li>`*]+]
      [*project_foto_01:ne=``:then=`<li><img src="[*project_foto_01*]" /></li>`*]

      Try this
      [*project_foto_01:is=``:then=``:else=`<li><img src="[*project_foto_01*]" /></li>`*]
      
        • 9994
        • 133 Posts
        Hmm, i get this in the output source:
        " /></li>`*]

        Guess phx isnt installed correctly or smt.

        #edit

        Didn´t install my phx correct, forgot to do this:
        Check "OnParseDocument" at the System Events tab

        Thanx for your help!
          Best CMS eva!