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> | |
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 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> | |
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 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
# Also refer to https://gist.github.com/stevewithington/5060602 if you wish to allow for mixed siteIDs in URLs | |
# Apache mod_rewrite Docs: http://httpd.apache.org/docs/current/rewrite/ | |
# Intro: http://httpd.apache.org/docs/current/rewrite/intro.html | |
# Flags: http://httpd.apache.org/docs/current/rewrite/flags.html | |
Options All -Indexes | |
Options +FollowSymLinks | |
# ------------------------------------------------------------------------------- | |
# MURA REWRITE OPTIONS |
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
<cfcomponent extends="mura.content.contentRenderer"> | |
<!--- | |
Add this method to the contentRendrer.cfc of any Site you wish to HAVE the SiteID in the URL. | |
Also refer to https://gist.github.com/stevewithington/5060589 for rewrite rules needed!! | |
---> | |
<cfscript> | |
// Drop these methods into your Site's contentRenderer.cfc for the sites that you WANT SiteIDs in URL | |
public string function getURLStem(required siteid, filename='') { | |
var sid = '/' & arguments.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
<!--- 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 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
<cfsilent> | |
<cfscript> | |
// MailingListBean (if you don't know the MLID, but you know the ListName) | |
mlid = $.getBean('mailinglistBean').loadBy( | |
name='Mailing List Name Goes Here' | |
, siteid=$.siteConfig('siteid') | |
).getMLID(); | |
//mlid = '6013C140-FD78-B5D9-60A468E7D2B5D6F0'; |
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
component extends='mura.cfobject' { | |
// drop this in your site or theme eventHandler.cfc | |
public any function onRenderStart($) { | |
// allow for a 'View As PDF' link (e.g., <a href="./?viewAsPDF=1">View As PDF</a>) | |
if ( IsBoolean(arguments.$.event('viewAsPDF')) && arguments.$.event('viewAsPDF') ) { | |
arguments.$.content('template', 'pdf.cfm'); | |
} | |
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) Drop this file under /config/ directory. | |
2) Add errortemplate=/muraWRM/config/customErrorFile.cfm to the settings.ini.cfm file. | |
3) Set debuggingenabled=false in the settings.ini.cfm file. | |
4) Reload Mura CMS | |
---> | |
<cftry> | |
<cfset msg = 'MURA ERROR - MESSAGE: #arguments.exception.Message# DETAIL: #arguments.exception.Detail# ' /> | |
<cflog type="ERROR" file="MuraError" text="#msg#" /> | |
<cfcatch></cfcatch> |
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
<!--- Place this either at the top of your file, or at the beginning of a block of code you wish to trace ---> | |
<cfset myTracePoint = $.initTracePoint('yourFilenameOrOtherDescriptionToIdentifyThisTracePointGoesHere') /> | |
<!--- file content or block of code goes here ---> | |
<!--- Place this either at the bottom of your file, or at the end of a block of code you wish to trace ---> | |
<cfset $.commitTracePoint(myTracePoint) /> |
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> | |
// drop this in your eventHandler.cfc | |
public void function onSiteCKFinderConfig($) { | |
var config = arguments.$.event('config'); | |
for (var i=1; i LTE ArrayLen(config.resourceType); i++){ | |
config.resourceType[i].allowedExtensions = ListAppend(config.resourceType[i].allowedExtensions,'abc'); | |
} | |
arguments.$.event('config',config); | |
} | |
</cfscript> |