We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33992 ☆ A M B ☆
    • 455 Posts
    Hi,

    I have created an image TV which uploads an image and shows uploaded image URL in it’s field.

    I have put this TV tag in template that display the image by it’s TV value but I need to clear the TV field for some documents and show no image in output. it means i don’t want to display some images which uploaded in a document but it is not possible!

    I can’t clear the field and image will display if i upload once. Now i use a 1px image for replace with current uploaded image but it is not a good way.
      God loves me. 【ツ】


      MODX.ir (Persian Support)

      Boplo.ir/modx/ (Persian)
      • 16183
      • 1,390 Posts
      I am probably not getting you....but couldn’t you use PHx to accomplish this? You can use it’s conditional operators. If it’s what you are looking for it is here:

      http://wiki.modxcms.com/index.php/PHx

        • 33992 ☆ A M B ☆
        • 455 Posts
        Thank you kongondo for helping.

        My problem solved! creating an image TV, an upload field add to document edit page. when i uploaded an new image, the image URL was filled in the TV field AND when i clicked on this field the upload browse window appeared so i just could upload another and couldn’t clear the current value(last uploaded image).

        I found out that it happens only in Google Chrome and i can delete the image URL in TV field in other browsers such firefox grin

        Sorry this is Chrome problem!
          God loves me. 【ツ】


          MODX.ir (Persian Support)

          Boplo.ir/modx/ (Persian)
          • 16183
          • 1,390 Posts
          Glad you got it solved... grin