What version of FarCry are you using? Recent versions offer the getContentObjects function, written for this exact purpose: <cfset q = application.fapi.getContentObjects(typename="dmFile",catFile_eq=stObj.metadata,aDocumentState_eq=session.RetailerStateID) />
Blair On Mon, Aug 6, 2012 at 9:45 AM, Retailspace Australia < [email protected]> wrote: > > I've extended the dmFile type to include a state, the additional property > name is "aDocumentState". > > I have written a member login module in FC and upon login I set a session > variable called "session.RetailerStateID". > > I have created a rule which displays filtered content based on document > category, but I want to further filter the results based on the user's > stateID > > I can see how the documents are filtered by category (below) > > <cfset oCat = createObject("component", > "farcry.core.packages.types.category") /> > > <cfset q = > oCat.getDataQuery(lCategoryIDs="#stObj.metadata#",typename="dmFile") /> > > But i'm unsure how to include my stateID session variable as part of that > filtering. > > -- > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: [email protected] > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry > > > -- -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
