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
Gist has been moved into Mura plugin at http://github.com/davidlong03/more-dspobjects. | |
<cfif $.content('Type') EQ 'calendar'> | |
<cfsilent> | |
<cfscript> | |
if(structKeyExists(URL,'month'))cMonth = URL.month; | |
else cMonth = month(now()); | |
if(structKeyExists(URL,'year'))cYear = URL.year; | |
else cYear = year(now()); | |
</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
CULTURE SPEC.CULTURE ENGLISH NAME | |
-------------------------------------------------------------- | |
Invariant Language (Invariant Country) | |
af af-ZA Afrikaans | |
af-ZA af-ZA Afrikaans (South Africa) | |
ar ar-SA Arabic | |
ar-AE ar-AE Arabic (U.A.E.) | |
ar-BH ar-BH Arabic (Bahrain) | |
ar-DZ ar-DZ Arabic (Algeria) | |
ar-EG ar-EG Arabic (Egypt) |
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> | |
// Category Iterator of Children of the Current Content Node | |
itKidsCats = $.content().getKidsCategoryIterator(); | |
// Category Iterator of the CURRENT Content Node | |
itCats = $.content().getCategoriesIterator(); | |
</cfscript> | |
<cfoutput> | |
<!--- Children of the Current Content Node ---> | |
<h4>Kids Categories</h4> | |
<cfif itKidsCats.hasNext()> |
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> | |
param name='form.rssurl' default='http://www.npr.org/rss/rss.php?id=1014'; | |
param name='form.parentfilename' default='blog'; | |
param name='form.isSubmitted' default='false'; | |
param name='form.istest' default='true'; | |
param name='form.siteid' default='default'; | |
$ = application.serviceFactory.getBean('$').init(form.siteid); | |
if ( !$.currentUser().isSuperUser() && !$.currentUser().isInGroup('admin') ) { |
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> | |
param name='form.csvUrl' default='#getPageContext().getRequest().getScheme()#://#cgi.server_name##getDirectoryFromPath(getPageContext().getRequest().getRequestURI())#users.csv'; | |
param name='form.group' default='Temp'; | |
param name='form.isSubmitted' default='false'; | |
param name='form.isTest' default='true'; | |
param name='form.siteid' default='default'; | |
$ = application.serviceFactory.getBean('$').init(form.siteid); | |
if ( !$.currentUser().isSuperUser() && !$.currentUser().isInGroup('admin') ) { |
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 method would reload the application at the time it's executed ---> | |
<cflocation url="./?#URLEncodedFormat(application.appreloadkey)#&reload=#URLEncodedFormat(application.appreloadkey)#" addtoken="false" /> | |
<!--- OR ---> | |
<!--- This method would force Mura to reload on the next event ---> | |
<cfset application.appinitialized = false> |
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
<!--- get a list of videos that need embeddeding ---> | |
<cfparam name="range" default="1" /> | |
<cfparam name="relativePath" default="/_SITEID_/assets/Image/video-thumbs/" /> | |
<cfparam name="saveDirectory" default="#expandPath(relativePath)#" /> | |
<cfparam name="siteID" default="_SITEID_" /> | |
<cfscript> | |
// create the save directory if it doesn't exist | |
if (!directoryExists(saveDirectory)) |
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 is one way to generate a custom meta image based on the content item's primary associated image. | |
You could use this method in several other ways as well, such as inside a content iterator, etc. | |
If the fileid passed into this method is not a valid image, then it will return an empty string | |
---> | |
<cfif Len($.getURLForImage($.content('fileid')))> | |
<cfscript> | |
img = $.getURLForImage( | |
fileid = $.content('fileid') // could be _any_ fileid in Mura | |
,size = 'custom' // small, medium, large, custom, or any other pre-defined image size |
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
Associated Image URL - #item.getImageURL()# | |
*****ATRIBUTE SET**** | |
Add custom attribute set to iterator loop - #item.getValue('ContentTypes')# | |
<cfproperty name="contentHistID" type="string" default="" required="true" /> |
OlderNewer