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> | |
// place this in your Site or Theme eventHandler.cfc, then reload your application! | |
public any function onApplicationLoad($) { | |
arguments.$.getBean('contentUtility').findAndReplace( | |
find='http://olddomain.com' | |
, replace='http://newdomain.com' | |
, siteid=arguments.$.event('siteid') | |
); | |
} | |
</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
.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
<cfscript> | |
// Helper function meant to be used by events to get a mura scope | |
private any function getMuraScope() { | |
if(structKeyExists(request, "siteID")) { | |
arguments.siteID = request.siteID; | |
} else if(structKeyExists(form, "siteID")) { | |
arguments.siteID = form.siteID; | |
} else if(structKeyExists(url, "siteID")) { | |
arguments.siteID = url.siteID; |
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
<!--- | |
1. A Gallery class extension titled Shuffle. | |
2. This function needs to be added to the site or theme eventHandler.cfc | |
3. jquery.shuffle.min.js located in theme js folder and included in the html head file. | |
4. shuffle.css loaded into page head. | |
---> |
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 file belongs in the integration views directory. | |
---> | |
<cfoutput> | |
<form name="processOrders" action="?s=1" class="form-horizontal"> | |
<input type="hidden" name="slatAction" value="aca_closeOrder:main.processOrder" /> | |
<fieldset class="dl-horizontal"> | |
<div class="control-group"> | |
<label class="control-label" for="username">Order Number</label> | |
<div class="controls"> |
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
<!--- Assuming you've created an extended attribute 'File' type called 'extAttributeImage' ---> | |
<!--- In a Mura Page Template ---> | |
#$.createHREFForImage(filename=$.content('extAttributeImage'),size='myCustomSize')# | |
<!--- In a Mura Component ---> | |
#$.createHREFForImage(filename=$.component('extAttributeImage'),size='myCustomSize')# | |
<!--- In the context of an iterator ---> | |
#$.createHREFForImage(filename=item.getExtAttributeImage(),size='myCustomSize')# |
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
<!--- Add this to your /config/settings.ini.cfm ---> | |
maxsourceimagewidth=99999 | |
<!--- | |
As long as the source image width is less than the value (in pixels) entered above, | |
then the source image will NOT be modified at all | |
---> | |
<!--- | |
Then, you will probably want to copy the '/display_objects/gallery/' directory, |
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
function onPageBodyRender($) { | |
// add release date to top of blog posts. Include contentID of parent in if statement. | |
if ($.content('parentID') eq '57B92471-11BA-4759-937182D9ADED7226') { | |
return "<p id='releaseDate'><i class='ion-calendar'></i> #dateformat($.content('releaseDate'), 'medium')# #timeFormat($.content('releaseDate'), 'medium')#</p>" & $.setDynamicContent($.content('body')); | |
} | |
} |
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 eventHandler.cfc | |
public void function onSiteCKFinderConfig($) { | |
var config = arguments.$.event('config'); | |
// Override CKFinder's default image compression settings to allow for hi-res images | |
config.images.maxWidth = 0; | |
config.images.maxHeight = 0; | |
config.images.quality = 100; |
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 will NOT work unless you have 'allowlocalfiles=true' in /config/settings.ini.cfm | |
// read image info on local file for default value | |
try { | |
ir = ImageRead('steve-withington.jpg'); | |
img = ir.source; | |
} catch(any e) { | |
img = ''; | |
} |
OlderNewer