We launched new forums in March 2019β€”join us there. In a hurry for help with your website? Get Help Now!
    • 32986
    • 17 Posts
    how to make ditto include thumbnails? because im making a catalog website..and this is the last problem (i hope) i have and its ready to upload..



    my chunk is like this:

    <div class="latest-image">[+title+]&nbsp;<a href="[~[+id+]~]">
    <img src="images/sampler.png" width="185" height="78" border="0" /></a>
    </div>

    my ditto call:
    [!Ditto? &parents=`2` &tpl=`category`!]


    or theres anyway? thank you..

      • 15152
      • 360 Posts
      It’s pretty simple, really. Create a Template Variable for an image. Use a place holder in your Ditto chunk to load it into the space you want.
        There are no boring projects. Only boring executions. ~ Etzkorn
        www.impress-design.com
        • 28042 β˜† A M B β˜†
        • 24,524 Posts
        Yes, using a TV with the input type of Image you could use this chunk
        <div class="latest-image">[+title+] <a href="[~[+id+]~]">
        [+imgtv+]</a>
        </div>

        or
        <div class="latest-image">[+title+] <a href="[~[+id+]~]">
        <img src="images/[+imgtv+]" width="185" height="78" border="0" /></a>
        </div>

        depending on whether you want to use a TV output widget or not.
          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