Skip to content

Instantly share code, notes, and snippets.

View muracms's full-sized avatar

Mura muracms

View GitHub Profile
public void function onSiteRequestStart($) {
var customKey = 'This is my custom key!';
$.setCustomMuraScopeKey('customKey', customKey);
}
bean=$.getBean( {beantype} ).loadBy(
{property}={propertyValue} [ ,siteID={siteID} ]
);
component {
/*
You must include the applicationSettings.cfm file to
share the same Application.cfc
*/
include "../../config/applicationSettings.cfm";
include "../../config/appcfc/onApplicationStart_method.cfm";
<plugin>
...
<ormcfclocation>path/to/entites</ormcfclocations>
...
<plugin>
<plugin>
...
<extensions>
<extension type="Page" subtype="News">
<attributeset name="News Options">
<attribute name="newsImage"
label="News Image"
hint=""
type="File"
defaultValue=""
component extends="mura.cfobject"{
variables.dateManager = "";
public library function init(){
return this;
}
public any function getRandomValue() {
return randRange(1,100);
}
<plugin>
...
<OrmCFCLocation>/orm</OrmCFCLocation>
<CustomTagPaths>customtags</CustomTagPaths>
<displayobjects location="global">
<displayobject
name="Configured Object"
displaymethod="dspConfiguredObject"
component="displayObjects.displayObjects"
configuratorInit="initExampleConfigurator"
<cfinclude template="plugin/config.cfm" />
<cfsavecontent variable="body">
<cfoutput>
<h2>#pluginConfig.getName()#</h2>
<p>Description of you plugin goes here.</p>
</cfoutput>
</cfsavecontent>
<cfoutput>
#$.getBean('pluginManager').renderAdminTemplate(
body=body