Skip to content

Instantly share code, notes, and snippets.

@muracms
Created November 6, 2013 22:41
Show Gist options
  • Select an option

  • Save muracms/7345532 to your computer and use it in GitHub Desktop.

Select an option

Save muracms/7345532 to your computer and use it in GitHub Desktop.
$.dspInclude('display_objects/custom/myFile.cfm');
$.dspThemeInclude('display_objects/myFile.cfm');
/{SiteID}/includes/themes/{ThemeName}/display_objects/myFile.cfm
$.dspObject({object type} ,{objectID} [,{siteId}]);
<cfscript>
// Displaying a Mura Display Object:
$.dspObject({object type} ,{objectID} [,{siteId}]);
// Rendering a Feed:
$.dspObject('feed' ,{feedId | name});
// Rendering a Form:
$.dspObject('form' ,{contentId | title});
// Rendering a Component:
$.dspObject('component', {contentId | title});
// Rendering an Editable Attribute for Front-End Editing:
// This feature currently supports 'text' and 'htmlEditor' type attributes.
// The 'attribute' field is required.
$.renderEditableAttribute(
attribute='attributeName'
, type={'text'|'htmlEditor'}
, required={true|false}
, validation='blank or a JavaScript regex'
, message='Message to display if it does not pass validation'
, label='Form Field Label'
, value=$.content('attributeName')
, enableMuraTag={true|false}
);
</cfscript>
<cfoutput>
#$.renderEditableAttribute(
attribute='MyCustomVar'
, label='My Custom Var'
)#
#$.renderEditableAttribute(
attribute='MyCustomVar'
, label='My Custom Var'
, type='htmlEditor'
)#
</cfoutput>
$.getContentRenderer();
$.getThemeRenderer();
$.getBean({beanType});
$.getPlugin({package|pluginID|moduleID});
$.getTopID();
$.getTopVar({varName}};
$.setDynamicContent({variableOrFunctionCall});
$.createHREF(
filename={filename}
// some of the optional arguments
, type={type}
, siteid={SiteID}
, contentID={ContentID}
, complete={complete}
, showMeta={showMeta}
, queryString={queryString}
);
/{SiteID}/includes/display_objects/custom/myFile.cfm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment