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
<!--- Stick this in to your theme/remote/rebuild.cfm ---> | |
<cfset application.serviceFactory.getBean('fileManager').rebuildImageCache(siteid='YOURSITEID')> |
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
<!--- ========================================== | |
Use this in any page template or display object | |
============================================ ---> | |
<!--- The meta for the associated image of a content node ---> | |
<cfset fileBean = $.getBean('fileMetaData').loadBy(contentid=$.content('contentid'))> | |
<!--- If you want to get the meta from an extended attribute image ---> | |
<cfset fileBean = $.getBean('fileMetaData').loadBy(fileid=$.content('extAttribute'))> |
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
<!--- 1) Create a form with a hidden form field like shown below, and place it in a layout template, or in a display object, etc. ---> | |
<form method="post"> | |
<input type="text" name="myField" value="Some Value" /> | |
<input type="hidden" name="myFormIsSubmitted" value="true"> | |
<input type="submit"> | |
</form> | |
<cfscript> | |
// 2) In the eventHandler.cfc (Site, Theme, Plugin, or other custom handler) you could listen for the even in one of Mura's eventHandlers such as 'onRenderStart' | |
public any function onRenderStart($){ |
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
<!--- Drop this into your site eventhandler.cfc ---> | |
<cffunction name="onAfterFormSubmitSave" output="true"> | |
<cfif $.event('formid') EQ '{ID of the Mura form}'> | |
<!--- Get the form result ---> | |
<cfset formBean = $.event().getValue('formresult')> | |
<cfmail | |
from = "e-mail address" | |
to = "#formBean.EMAIL#" | |
subject = "Thank you!" |
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
/*================================================================*/ | |
/* DESKTOP MENU | |
/*================================================================*/ | |
if (document.documentElement.clientWidth > 767) { //if client width is greater than 767px | |
ddsmoothmenu.init({ | |
mainmenuid: "main_menu", | |
orientation: 'h', | |
contentsource: "markup", | |
showhidedelay: {showdelay: 300, hidedelay: 100} //set delay in milliseconds before sub menus appear and disappear, respectively |
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
<cfscript> | |
// Place these methods in your Site, Theme, or Plugin's eventHandler.cfc | |
public any function onBeforeUserSave($) { | |
var newUserBean = arguments.$.event('userBean'); | |
var oldUserBean = arguments.$.getBean('user').loadBy(userid=arguments.$.event('userid')); | |
// if you want to stuff the oldUserBean in the event | |
// $.event('oldUserBean', oldUserBean); |
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
<cffunction name="onAfterPageEventSave" output="true"> | |
<cfargument name="$" required="true" hint="mura scope" /> | |
<cfset cfcpath1 = Replace($.siteConfig('themeAssetPath'), "/", ".", "all")> | |
<cfset cfcpath = Replace(cfcpath1, ".", "")> | |
<cfscript> | |
var cBean = $.getBean('content').loadBy(contentID=$.content().getContentID()); | |
var event = StructNew(); | |
var loc = ''; |
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
<!--- Add this to your {theme}/remote/podcast.cfm ---> | |
<!--- Set your siteID ---> | |
<!--- This is important because iTunes does not have a session to your Mura site when accessing the XML, | |
so you have to set the site ID manually ---> | |
<cfset siteid='yourSiteID'> | |
<cfscript> | |
$= application.serviceFactory.getBean('$').init(siteid); | |
// In your Mura Architecture, you will want to create a "Show" for wach of the episodes to live under. |
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
<cfoutput> | |
<cfinclude template="inc/html_head.cfm" /> | |
<!--- By getting a feed with a blank value, Mura will return all pages underneith the homepage ---> | |
<cfset feed=$.getBean("content").loadBy(filename='',siteID=$.event("siteid"))> | |
<cfset iterator=feed.getKidsIterator()> | |
<cfif iterator.hasNext()> | |
<body id="home"> | |
<!--- add the "home" page statically ---> | |
<div class="scroll-holder" data-stub="###$.createCSSid($.content('menuTitle'))#-stub" data-image="#$.content().getImageURL('source')#" data-speed="#$.content('pDataSpeed')#"></div> |