This file contains 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
.masonryItem { | |
width: 8.65%; | |
margin-bottom: 10px; | |
float: left; | |
} | |
.masonryItem.w2 { | |
width: 19.5%; | |
margin-bottom: 10px; | |
} | |
#masonryContainer { |
This file contains 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
Gist has been moved into Mura plugin at http://github.com/davidlong03/more-dspobjects. | |
<cfif $.content('Type') EQ 'calendar'> | |
<cfsilent> | |
<cfscript> | |
if(structKeyExists(URL,'month'))cMonth = URL.month; | |
else cMonth = month(now()); | |
if(structKeyExists(URL,'year'))cYear = URL.year; | |
else cYear = year(now()); | |
</cfscript> |
This file contains 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
SET @someVar = 'someValue'; | |
SELECT * | |
FROM t_sometable | |
WHERE CASE @someVar <> '' THEN someColumn = @someVar ELSE someColumn = '' END; |
This file contains 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
<cfscript> | |
// drop this in your Site eventHandler.cfc | |
public any function onRenderStart(event, $) { | |
arguments.$.event('altTheme', 'MyTheme'); | |
} | |
// this assumes you have a theme directory called 'MyTheme' of course | |
</cfscript> |
This file contains 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
<!--- This method would reload the application at the time it's executed ---> | |
<cflocation url="./?#URLEncodedFormat(application.appreloadkey)#&reload=#URLEncodedFormat(application.appreloadkey)#" addtoken="false" /> | |
<!--- OR ---> | |
<!--- This method would force Mura to reload on the next event ---> | |
<cfset application.appinitialized = false> |
This file contains 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
<!--- get a list of videos that need embeddeding ---> | |
<cfparam name="range" default="1" /> | |
<cfparam name="relativePath" default="/_SITEID_/assets/Image/video-thumbs/" /> | |
<cfparam name="saveDirectory" default="#expandPath(relativePath)#" /> | |
<cfparam name="siteID" default="_SITEID_" /> | |
<cfscript> | |
// create the save directory if it doesn't exist | |
if (!directoryExists(saveDirectory)) |
This file contains 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
Associated Image URL - #item.getImageURL()# | |
*****ATRIBUTE SET**** | |
Add custom attribute set to iterator loop - #item.getValue('ContentTypes')# | |
<cfproperty name="contentHistID" type="string" default="" required="true" /> |
This file contains 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
<cfscript> | |
// This determines what JavaScript library Mura should use with its built-in display objects. The options are Prototype and jQuery: | |
this.jslib='jquery'; | |
// This allows you set start standard navigation behavior at lower navigation levels. For example, this would be useful if you have a section of your site that should have its own primary navigation: | |
this.navOffSet=0; | |
// This sets the maximum depth that standard navigation will follow: | |
this.navDepthLimit=1000; |
This file contains 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
#$.content('metaDesc')# |
OlderNewer