Created
May 17, 2013 14:59
-
-
Save lxcodes/5599618 to your computer and use it in GitHub Desktop.
Dynamic Feed -- Needs help with group conditions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// feed | |
local.dynamicFeed=$.getBean('feed'); | |
local.dynamicFeed.setName('tempFolder'); | |
local.dynamicFeed.setIsActive(1); | |
local.dynamicFeed.setIsFeature(1); | |
local.dynamicFeed.setSortBy('orderno'); // lastUpdate, releaseDate, displayStart, menuTitle, rating, comments, created, orderno, random | |
local.dynamicFeed.setMaxItems(1); // 0=unlimited | |
local.dynamicFeed.setNextN(50); // use the content's own settings | |
local.dynamicFeed.addParam( | |
relationship='AND' | |
,field='tcontent.type' | |
,dataType='varchar' | |
,criteria='File' | |
); | |
dynamicFeed.addParam(relationship='andOpenGrouping'); | |
local.dynamicFeed.addParam( | |
relationship='OR' | |
,field='tcontent.subType' | |
,dataType='varchar' | |
,criteria='Video' | |
); | |
local.dynamicFeed.addParam( | |
relationship='OR' | |
,field='tcontent.subType' | |
,dataType='varchar' | |
,criteria='Quote' | |
); | |
dynamicFeed.addParam(relationship='closeGrouping'); | |
local.iterator = dynamicFeed.getIterator(); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment