We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27421
    • 67 Posts
    This seems like a stupid question, but how can I add multiple images to a document using a template variable?
      • 24935
      • 160 Posts
      The simple answer: Set the type of the template variable to richtext. Then you can easily insert images into the richtext area using the TinyMCE editor.

      In your template you could do something like this:

      <div id="pagephotos">
      [*pagephotos*]
      </div>

      And use CSS to style the photos in that block as you like.

      If you want to do something more than that, take a look here:
      http://modxcms.com/forums/index.php?topic=30938.0