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
<script> | |
mktoMunchkinFunction('associateLead', | |
{ | |
Email: "[email protected]", | |
FirstName: "John", | |
LastName: "Doe" | |
}, | |
'{hashed key}' | |
); | |
</script> |
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
<!--- Assuming you've created an extended attribute 'File' type called 'extAttributeImage' ---> | |
<!--- In a Mura Page Template ---> | |
#$.createHREFForImage(fileid=$.content('extAttributeImage'),size='myCustomSize')# | |
<!--- In a Mura Component ---> | |
#$.createHREFForImage(fileid=$.component('extAttributeImage'),size='myCustomSize')# | |
<!--- From a site extended attribute ---> | |
#$.createHREFForImage(fileid=$.siteConfig('extAttributeImage'),size='myCustomSize')# |
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
============================= | |
Content Image | |
============================= | |
<img src="#$.content().getImageURL(size='large')#" /> | |
============================= | |
Extended Attribute Image | |
============================= | |
<!--- First, create an extended attribute with the type of 'File' ---> | |
<img src="#$.createHREFForImage(filename=$.content('myExtAttribute'))#" /> |
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
loadEmbedShepherd(function(){ | |
if(window.wistiaEmbeds===undefined){ | |
return; | |
} | |
window.wistiaEmbeds.onFind(function(video) { | |
video.addPlugin("marketo", { | |
src: "js/MarketoWistiaPlugin.js", | |
outsideIframe: true | |
}); | |
}); |
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
// Put this in your site or theme eventHandler.cfc | |
public any function onApplicationLoad($) { | |
// make sure 'News' page set to 'News.cfm' Page Template | |
var bean = $.content(); | |
if ( bean.getValue('subType') == 'News' ) { | |
bean | |
.setValue('template', 'news.cfm') | |
.save(); |
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
// Put this in your site or theme eventHandler.cfc |
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> | |
// Load a new content Bean | |
bean=$.getBean('content'); | |
//Set the parent node of where you want the new node to live | |
bean.setParentID('some id'); | |
bean.setTitle('Some Title'); | |
//Should this go live immediately? 0=no 1=yes |
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
<cfset $.getContentRenderer().renderHTMLQueues=false> |
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
<cfset bean=$.getBean('content').loadBy(contentID="whatever content ID")> | |
<cfset subNav=bean.getKidsIterator()> | |
<cfif subNav.hasNext()> | |
<ul> | |
<cfloop condition="subNav.hasNext()"> | |
<cfset item=subNav.next()> | |
<li><a href="#item.getURL()#">#item.getMenuTitle()#</a></li> | |
</cfloop> | |
</ul> |
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 or theme eventHandler.cfc ---> | |
<cffunction name="onContentTabBasicBottomRender"> | |
<cfset subType = application.configBean.getClassExtensionManager().getSubTypeByName("Folder","Blog", $.event('siteID'))> | |
<cfset extendSets = subType.getExtendSets(inherit=true,container='Custom',activeOnly=true)> | |
<cfoutput> | |
<!--- Loop through the extend sets ---> | |
<cfloop from="1" to="#arrayLen(extendSets)#" index="s"> | |
<cfset extendSetBean=extendSets[s]/> |