-
-
Notifications
You must be signed in to change notification settings - Fork 2
item enclosures
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) />
- Feed Reader * [RSS Syndication Format](https://github.com/ColdBox/cbox-feeds/wiki/RSS Syndication Format) * RDF Syndication Format * Atom Syndication Format * Supported Syntax and Formats
- Feed Generator
- Feed Generator Elements