Skip to content

Instantly share code, notes, and snippets.

@atadams
Last active December 19, 2015 10:49
Show Gist options
  • Save atadams/5943737 to your computer and use it in GitHub Desktop.
Save atadams/5943737 to your computer and use it in GitHub Desktop.
Mura: Active Content
WHERE
(
tcontent.Active = 1
AND tcontent.Approved = 1
AND tcontent.siteid = <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.siteID#"/>
)
AND (
tcontent.Display = 2
AND (
tcontent.DisplayStart <= #createodbcdate(now())#
AND (
tcontent.DisplayStop >= #createodbcdate(now())#
OR tcontent.DisplayStop IS NULL
)
)
OR tcontent.Display = 1
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment