Content Feed

Load by feedID

feed = $.getBean('feed').loadBy( feedID={feedID} [, siteID={siteID}] );

Load by name

feed = $.getBean('feed').loadBy( name={name} [, siteID={siteID}] );

Load by remoteID

feed = $.getBean('feed').loadBy( remoteID={remoteID} [, siteID={siteID}] );

Example Content Feed

<cfscript>
//Create a feed bean
feed=$.getBean('feed');
feed.setSiteID({siteID});

//Set the number of records to return, enter 0 for all
feed.setMaxItems(100);

/*
Sort by columns: menuTitle, title, lastUpdate, releaseDate, orderNo,displayStart, created, rating, comments, credits, type, subType, {extendedAttribute} 
*/
feed.setSortBy('created');
feed.setSortDirection('desc');

/* 
filter off of contentID
NOTE: the second argument (if true) appends to already existing value of contentID 
*/
feed.setContentID('11223344', {append:false});

//filter category id
feed.setCategoryID('1122', {append:false});

//advanced filter
feed.addParam(
	field='{table}.{field}'
	, relationship='{AND | AND ( | OR ( | ) | OR}'
	, condition='{EQUALS|IN|NOT IN|GT|LT|NEQ|GTE|LTE|BEGINS|CONTAINS}'
	, criteria='{value}'
	, dataType='{varchar|numeric|timestamp|...}'
);

//get the iterator from the feed
feedIterator = feed.getIterator();

// to make sure permissions are applied
// feed.getIterator(applyPermFilter=true);


//or
feedQuery = feed.getQuery();
</cfscript>