We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16633
    • 116 Posts
    I have an extended field for a user called "code".

    When I put [[+code]] in my chunk it outputs it fine.

    When I try and do this:
    <li><a href="[[~[[+code]]]]">Details</a></li>
    


    It does not work. Also the following does not work either:
    [[!getResourceField? &id=`[[+code]]`]]
    


    Why won’t it output like this? I need it to work!
      --
      Landon Poburan
      Web Designer and Developer

      http://www.categorycode.ca
      http://www.landonp.com
      • 16633
      • 116 Posts
      Info: Using Revo 2.0.6 pl2

      I have it displaying properly like this:
      <li><a href="[[!~[[!+code]]]]">[[!getResourceField? &id=`[[!+code]]`]] Details</a></li>
      


      But it wont display like this:
      [[!+code:is=``:then=``:else=`<li><a href="[[!~[[!+code]]]]">[[!getResourceField? &id=`[[!+code]]`]] Details</a></li>`]]
      


      I need it to work the second way so it doesn’t output unless it has a value.
        --
        Landon Poburan
        Web Designer and Developer

        http://www.categorycode.ca
        http://www.landonp.com