http://docs.getmura.com/v6/installation-setup/settingsinicfm-reference/
admindomain=
adminemail=
adminssl=0
assetdir=
assetpath=
http://docs.getmura.com/v6/installation-setup/settingsinicfm-reference/
admindomain=
adminemail=
adminssl=0
assetdir=
assetpath=
//Credit: Ben Nadel: http://www.bennadel.com/blog/149-ask-ben-converting-a-query-to-a-struct.htm | |
private any function queryToStruct(required query query,boolean row=false ) { | |
local.struct = structNew(); | |
if ( arguments.row ) { | |
local.fromIndex = arguments.row; | |
local.toIndex = arguments.row; | |
} else { | |
local.fromIndex = 1; | |
local.toIndex = arguments.query.recordcount; | |
} |
<cfsetting showdebugoutput="false" > | |
<cfset varName = "testVar#randRange(1,100)#"> | |
<cfset evaluate("url.#varName# = 42") /> | |
<cfset iterations = 100000> | |
<!--- test when variable is Defined ---> | |
<cfset tickBegin = getTickCount()> | |
<cfloop from="1" to="#iterations#" index="i"> |
<!--- In this example, MuraTweets is a plugin and TwitterTile is one of its display objects. | |
In my experience, this method of referencing the display will fail once in a blue moon. Usually | |
fixable by simply doing an application reload. This snippet supplies a fallback in case, for some | |
reason, the plugin isn't registered within the MuraScope. ---> | |
<cftry> | |
#$.MuraTweets.TwitterTile($)# | |
<cfcatch type="any"> | |
<cfset qryDisplayObjects = application.pluginManager.getDisplayObjectsBySiteID(siteID=$.event('siteID'))> | |
<cfquery name="muraTweetsTwitterTile" dbtype="query"> |
if(IsDefined("form.mailto") and isValid('email',form.mailTo)) { | |
mailSvc = new mail(); | |
mailSvc.setTo(form.mailto) | |
.setFrom(form.mailFrom) | |
.setSubject(form.subject) | |
.setType("html"); | |
/* add mailparams */ |
<cffunction name="dspEventDate" output="true"> | |
<cfargument type="any" name="contentBean" > | |
<cfset var l = {} /> | |
<cfset l.displayStart = contentBean.getValue("displayStart") /> | |
<cfset l.displayStop = contentBean.getValue("displayStop") /> | |
<cfset l.displayInterval = contentBean.getValue("displayInterval") /> | |
<cfset l.returnVar = "" /> | |
<cfoutput> |
function onRenderEnd (required any $){ | |
request.__muraresponse__ = hideEmails(request.__muraresponse__); | |
} | |
string function hideEmails(required string contentBlock){ | |
local.emailRegEx = '[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}'; | |
//first do the mailto links | |
local.mailToLinks = reMatchNoCase("mailto:#local.emailRegEx#", arguments.contentBlock); | |
for(local.mailToLink in local.mailToLinks){ |
<!--- | |
Add this function to contentRender.cfc - appReload required. | |
Then reference by using the following: | |
#$.getContentRenderer().dspPluginDisplayObject('{plugin title}', '{display Object Name}')# | |
---> | |
<cffunction name="dspPluginDisplayObject" > | |
<cfargument name="pluginTitle" type="string" required="true"/> | |
<cfargument name="displayObjectName" type="string" required="true" /> |
<cfset mytracepoint=$.initTracepoint("clever name for my tracepoint")> | |
<!--- All the things that I want to see how long they take ---> | |
<cfset $.commitTracepoint(mytracepoint)> |
<!--- This snippet will display whatever is in the 2nd display region on a sub-page that you're iterating through ---> | |
<!--- In this example subPage is a child from an iterator. eg: subPage = iterator.next() ---> | |
#$.dspObjects(2,subPage.getValue('contentHistID'))# |