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
<!--- In a Mura page template ---> | |
#$.getURLForFile(fileid=$.content('extAttribute'))# | |
<!--- In a Mura component ---> | |
#$.getURLForFile(fileid=$.component('extAttribute'))# | |
<!--- In a Mura iterator ---> | |
#$.getURLForFile(fileid=item.getExtAttribute())# |
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
<!--- | |
A brief example on how to use the 'CustomUI' option when creating a class extension in Mura CMS. | |
This example assumes you have an extended attribute called 'Page/Book'. | |
It also assumes you have an attribute set using the 'CustomUI' container/tab assignment. | |
Any extended attributes you assign to the attribute set, you are responsible for collecting | |
that data using your own form fields. Make sure the 'name' and 'id' attributes match the | |
names you've used when you created the extended attributes! For example, if you have an | |
extended attribute with a name of 'bookPublisher', make sure you have a form field with an | |
'id' and 'name' attribute of 'bookPublisher'. Check your casing too! |
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
<extension type="" subType=""> | |
<attributeset name="" container="Basic"> | |
<attribute | |
name="" | |
label="" | |
hint="" | |
type="SelectBox" | |
defaultValue="" | |
required="false" | |
validation="" |
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
<cfset feed=$.getBean("feed").loadBy(name="Feed Name",siteID=$.event("siteid"))> | |
<cfset it=feed.getIterator()> | |
<cfif it.hasNext()> | |
<div> | |
<cfloop condition="it.hasNext()"> | |
<cfset item=it.next()> | |
<p>looped content here</p> | |
</cfloop> | |
</div> |
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
<script> | |
$('#tab-nav-2 > a').on('click',function(){ | |
Munchkin.munchkinFunction('visitWebPage', { | |
url: window.location.href + '#tab-2' | |
}); | |
}) | |
$('#tab-nav-3 > a').on('click',function(){ | |
Munchkin.munchkinFunction('visitWebPage', { | |
url: window.location.href + '#tab-3' |
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
<cffunction | |
name="csvToArray" | |
access="public" | |
returntype="array" | |
output="false" | |
hint="I take a CSV file or CSV data value and convert it to an array of arrays based on the given field delimiter. Line delimiter is assumed to be new line / carriage return related."> | |
<!--- Define arguments. ---> | |
<cfargument | |
name="file" |
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
<cfoutput> | |
<cfset catList=""> | |
<cfset it=$.content().getCategoriesIterator()> | |
<!--- Only run if there are categories applied to the page ---> | |
<cfif it.hasNext()> | |
<!--- Loop through the categories and append them to the list ---> | |
<cfloop condition="it.hasNext()"> | |
<cfset cat=it.next()> | |
<!--- Append the current category to the list ---> |
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
<script> | |
mktoMunchkinFunction('associateLead', | |
{ | |
Email: "[email protected]", | |
FirstName: "John", | |
LastName: "Doe", | |
Company: "Acme" | |
}, | |
'{hashed key}' | |
); |
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
<script> | |
mktoMunchkinFunction('associateLead', | |
{ | |
Email: “<?php echo "decodeURIComponent(\"" . rawurlencode($_REQUEST["userEmail"]) . "\")" ?>”, | |
FirstName: "<?php echo "decodeURIComponent(\"" . rawurlencode($_REQUEST["userFirst"]) . "\")" ?>", | |
LastName: "<?php echo "decodeURIComponent(\"" . rawurlencode($_REQUEST["userLast"]) . "\")" ?>" | |
}, | |
'<?php echo hash('sha1', 'mysecretkey' . $_REQUEST["userEmail"]); ?>' | |
); | |
</script> |
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
<cfoutput> | |
<script> | |
mktoMunchkinFunction('associateLead', | |
{ | |
Email: "#esapiEncode('javascript',url.userEmail)#", | |
FirstName: "#esapiEncode('javascript',url.userFirst)#", | |
LastName: "#esapiEncode('javascript',url.userLast)#" | |
}, | |
'#hash('mysecretkey' & url.userEmail,'SHA-1')#' | |
); |
NewerOlder