Skip to content
Jorge Reyes edited this page Jun 3, 2015 · 2 revisions

The item enclosure element, used for attaching files has three inputs; enclosure_url to supply the URLs linking to the files, enclosure_size to supply the sizes of the files and enclosure_type to supply the file MIME types. If you wish to supply multiple enclosures for an item then you supply the data with a comma separated, list. All three inputs are required for each enclosure element you wish to use in an item. In the example below we have two images attached to the feed item.

<cfset QuerySetCell(feed.items, "enclosure_url", "http://www.example.com/images/picture.png,http://www.example.com/images/picture_thumb.gif", 1) />
<cfset QuerySetCell(feed.items, "enclosure_size", "54005,3056", 1) />
<cfset QuerySetCell(feed.items, "enclosure_type", "image/png,image/gif", 1) />
Clone this wiki locally