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 application.serviceFactory.getBean('fileManager').cleanFileCache('[siteid]') /> |
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
| <!--- 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
| <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 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
| <!--- | |
| 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 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
| <!--- 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())# |
OlderNewer