Last active
December 19, 2015 10:49
-
-
Save atadams/5943737 to your computer and use it in GitHub Desktop.
Mura: Active Content
This file contains hidden or 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
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