We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22673
    • 72 Posts
    I’ve made a custom TV called [*TVimage*] with an "Image" input value so users can create a new document and upload an image with it before saving. I set the widget to "Image" too.

    Then I created a template chunk and inserted [*TVimage*] where I wanted the image to appear.

    Then I have a ditto call in my page template which uses this template chunk.

    The image does not appear on the page. It seems like I’m doing everything right but it just won’t work!

    Any help much appreciated.

    Alex.

    tplEvents:

    <table width="100%" border="0" cellspacing="0" cellpadding="10">
      <tr>
        <td width="25%" align="left" valign="middle"><strong>[+pagetitle+]</strong><br />[+longtitle+]</td>
        <td width="50%" align="left" valign="middle">[+content+]</td>
        <td align="right" valign="middle">[*TVimage*]</td>
      </tr>
    </table>
    <p> </p>


    Ditto call on "Events" page:

    [[Ditto? &tpl=`tplEvents` &orderBy=`longtitle ASC` &filter=`TVmissed-it,No,7`]]
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      What does a "view source" of the generated page show? Is anything showing up in the source at all?

      Have you checked the TV by itself in a test document? Does the image TV work at all, outside of the Ditto listing?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 22673
        • 72 Posts
        Quote from: sottwell at Jul 09, 2009, 10:28 PM

        What does a "view source" of the generated page show? Is anything showing up in the source at all?

        Nothing appears.

        Quote from: sottwell at Jul 09, 2009, 10:28 PM

        Have you checked the TV by itself in a test document?

        Yes and it does appear.

        Quote from: sottwell at Jul 09, 2009, 10:28 PM

        Does the image TV work at all, outside of the Ditto listing?

        Yes on a test page it does appear. Is the reason it’s not working because the TV is in a template chunk?

        Alex.
          • 33337
          • 3,975 Posts
          If you are using the tv inside the ditto template, u need to use [+TVimage+] ....
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 22673
            • 72 Posts
            Hi Zi,

            that’s it! So simple. Thanks a lot.

            Alex.