The [mura] Tag

 The [mura ] tag is used to help incorporate core Mura and CF functionality into your content pages. You will find yourself using this tag mostly within the body (rich text editor) of your page content.

Note: The space you see following the word "mura" and the closing bracket is included to keep the tag from rendering in this page. You will need to remove the space for the tag to render.

Embedding Java, CFML or cfscript

To embed Java, ColdFusion or cfscript into a page, create a separate file with your CFML, Java or CFScript and place it in /[siteid]/includes/display_objects/custom/ and use the dspInclude() method to include it in your page or component as shown below:

Syntax:

[mura ]dspInclude({path to cfm file})[/mura ]

Examples:
  • [mura ]dspInclude('templates/inc/theFile.cfm')[/mura ]
    Displays the given cfm file in the context of your page
  • [mura ]dspInclude('display_objects/custom/theFile.cfm')[/mura ]
    Displays the given cfm file in the context of your page

Displaying a Mura Object

Syntax:
[mura ]dspObject({object type} ,{CONTENTID}[,{request.siteId}])[/mura ]
Examples:
  • [mura ]dspObject('feed' ,{feedId})[/mura ]
    Gives you a specified feed
  • [mura ]dspObject('feed_no_summary' ,{feedId})[/mura ]
    Gives you a specified feed without a summary
  • [mura ]dspObject('component', {contentId}[/mura ]
    Gives you the content of the requested component

Directly invoke methods on CFCs

Example:
[mura ]createObject('component', {path.to.component} ).init()[/mura ]

Access a Java object:

Example:
[mura ]createObject('java', {java.lang.System} ).getProperty('java.version')[/mura ]

Access built-in ColdFusion functions

Example:
[mura ]now()[/mura ]

Adding Custom Methods

You may also add methods to your local site content renderer (/[siteid]/includes/contentRenderer.cfc) which become locally available through the Mura tag.

Example in contentRenderer.cfc:
<cffunction nam="customNow"> <cfreturn></cfreturn> </cffunction>
Example Mura tag:
[mura ]customNow()[/mura ]