Outputs valid RSS 2.0 XML
| hierarchy: |
WEB-INF.cftags.component applications.cfc.rss |
| path: | \\polaris\hamiltonweb\www\applications\CFC\rss.cfc |
| properties: | |
| methods: | create, init, setItem |
| create |
|---|
public
void
create
(
)
Ouputs RSS 2.0 XML Output: enabled |
| init |
public
any
init
(
string
title,
string
link,
string
description,
string
language="en-us",
string
copyright="[runtime expression]",
string
editor,
string
webmaster,
string
pubdate="[runtime expression]",
date
lastbuilddate="[runtime expression]",
any
category,
string
docs="http://blogs.law.harvard.edu/tech/rss",
string
ttl="60",
string
image,
string
rating,
struct
channel
)
Initialize the RSS Component Output: suppressed Parameters: title: string, optional, title - Title of RSS Feed link: string, optional, link - URL for web site corresponding to the channel description: string, optional, description - Phrase or sentenance describing the channel language: string, optional, language - Language the channel is written in copyright: string, optional, copyright - Copyright notice for content in the channel editor: string, optional, editor - Email address for person responsible for editorial content webmaster: string, optional, webmaster - Email address for person responsible for technical issues relating to channel pubdate: string, optional, pubdate - The publication date for teh content in the channel lastbuilddate: date, optional, lastbuilddate - The last time the content of the channel changed category: any, optional, category - Specify one or more categories that the channel belongs to. Pass in array containing each category string, or an array containing a struct with a category key with the category string as the value and an optional domain key with the domain string as the value docs: string, optional, docs - URL that points to the documentation for the format used in the RSS file ttl: string, optional, ttl - Number of minutes that indicates how long a channel can be cached before refreshing from the source image: string, optional, image - Specifies a GIF, JPEG, or PNG image that can be displayed with the channel rating: string, optional, rating - The PICS rating for the channel channel: struct, optional, channel - Optionally pass the desired channel components as a single struct - key names must match argument names |
| setItem |
public
boolean
setItem
(
string
title,
string
link,
string
description,
string
author,
any
category,
string
comments,
string
enclosure,
string
guid,
string
pubDate,
string
source,
struct
item
)
Initialize each Item in the channel Output: suppressed Parameters: title: string, optional, title - The title of the item link: string, optional, link - The URL of the item description: string, optional, description - The item synopsis author: string, optional, author - Email address of the author of the item category: any, optional, category - Specify one or more categories that the channel belongs to. Pass in array containing each category string, or an array containing a struct with a category key with the category string as the value and an optional domain key with the domain string as the value comments: string, optional, comments - URL of a page for commetns relating to the item enclosure: string, optional, enclosure - Describes the media object that is attached to the item guid: string, optional, guid - A string that uniquely identifies the item pubDate: string, optional, pubDate - Indicates when the item was published source: string, optional, source - The RSS channel that the item came from item: struct, optional, item - Optionally pass the desired channel components as a single struct - key names must match argument names |