Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleExpand to see the sample code
collapsetrue
#{for images}
	// Retrieve extension from filename and save it on extension variable
	${set(extension,%{var name = '${Images[n].Name}'.split('.'); var extension = name[1]; extension})}

	// If the image extension is 'gliffy' export all info about the attached image
	#{if (%{'${extension}'.equals('gliffy')})}
   		${Images[n].Image}
   		${Images[n].Name}
   		${Images[n].ID}
   		${Images[n].Size}
   		${Images[n].HumanReadableSize}
   		${Images[n].Author}
   		${Images[n].Created}
   		${Images[n].MimeType}
   		${Images[n].ThumbnailURL}
 	#{end}
 #{end}

...