...
For example, a custom function to allow the ability to restrict content to only show published content (to allow forward publishing)
Code Block | ||
---|---|---|
| ||
<cffunction name="contentToIndex" returntype="query" description="Gets news content to index"> <!--- Get CONTENT ---> <cfquery name="qContentToIndex" datasource="#application.dsn#"> select objectid from dmNews where status = 'approved' and publishdate <= getdate() </cfquery> <cfreturn qContentToIndex> </cffunction> |
...