Skip to content

Instantly share code, notes, and snippets.

@modius
Created September 7, 2010 02:03
Show Gist options
  • Save modius/567756 to your computer and use it in GitHub Desktop.
Save modius/567756 to your computer and use it in GitHub Desktop.
<!-- For example, within an extended ./myproject/packages/types/dmNews.cfc -->
<cffunction name="contentToIndex" returntype="query" description="Gets news content to index">
<cfset qContentToIndex = application.fapi.getContentObjects(typename="dmNews",lProperties="objectid",publishDate_lte=now(),expiryDate_gt=now()) />
<cfreturn qContentToIndex>
</cffunction>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment