Jump to main content Jump to doc navigation

The GalleryItem Custom TV

Gallery comes packaged with custom input and output types for TVs in Revolution. This allows you to get some cool image placement in your Resources. You can crop, resize, rotate and do other functions on images with the TV:

Setting up the TV

First off, you'll want to setup the TV itself. Go ahead and create a TV,

  • Load the Create TV page, and give the TV a name
  • Select the Input Type of 'galleryitem'
  • Select the Output Type of 'galleryitem'
  • Assign your TV to your template
  • Save!

Then you should be able to see your custom TV on your Resources with the Templates you assigned the TV to!

Using the TV

From there, just click 'Choose an Image' and select a Gallery Album from the left tree. Then select the photo you want to use. This will load the photo in full size in the photo editor. You can then resize the photo (and crop it), rotate it, and more.

Once you're done editing it, just place the TV's tags in your content. For example, if your TV was named 'photo', you would place this in your content:

[[*photo]]

And Gallery will automatically render the image and place it!

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • modmore
  • Jens Wittmann – Gestaltung & Entwicklung
  • Raffy
  • eydolan
  • Digital Penguin
  • Fabian Christen
  • Dannevang Digital
  • deJaya
  • Following Sea
  • Sepia River Studios
  • Anton Tarasov
  • Lefthandmedia
  • Nick Clark
  • Chris Fickling
  • Murray Wood
  • YJ
  • CrewMark
  • Richard

Budget

$305 per month—let's make that $500!

Learn more