We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22840
    • 1,572 Posts
    Hi all,

    I want to put a Template Variables that will pull a image into a page so have done the following:

    1: created the Template Variable.
    2: used this code to pull the image in a page (not a template)

    <img alt="news image" src="[*image*]"  />


    As far as I can see that is correct, when I create the new artical the template variable is there (image) and I browse to the image and upload it which it does fine (that part works), however the image doesnot show in the page, and if I view the src code the image link is correct apart from the src is empty, meaning it isn’t pulling the [*image*] information.

    <img alt="news image" src=""  />


    Can anyone see where I’m going wrong
      • 7231
      • 4,205 Posts
      Should work. TVs are case sensitive, make sure it is spelled correctly. Also after uploading and selecting the image make sure that the image path is visible in the tv field.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]