Alphabetical listing of images in a folder, using folder path

Description

This is an alternative to the old, deprecated "#photoGallery" macro

Code

#set($folderPath = "/galleries/images1/")
<!-- Loading images from location: ${folderPath} -->

## Find the folder object using the path
#set ($imagesFolder = $folderAPI.findCurrentFolder($folderPath, $host))

## Get the inode of the folder so we can use it in our pull
#set($folderInode = $imagesFolder.inode)

<ul>
	## Get all of the files in the folder, alphabetically by file name
	#foreach($image in $dotcontent.pull("+contentType:FileAsset +conFolder:$!{imagesFolder.inode}*",0,"FileAsset.fileName"))
		<li>
			## Resize each image and compress as a JPG
			<img src="/contentAsset/image/${image.inode}/fileAsset/byInode/1/filter/Resize,Jpeg/resize_w/800/jpeg_q/85" alt="$esc.html($image.title)" />
		</li>
	#end
</ul>