content
The content
object is a wrapper of Mura's content bean object, and is a subscope object of the Mura Scope. It wraps the content bean of the content item being served in the current request. It includes data about a Mura content item, such as the title, summary, body, etc. In addition, there are several content-specific helper methods included. For example, you could get an iterator of direct children of the content item, what specific categories the content item has been assigned to, etc.
Syntax
The following examples illustrate how to "get" and/or "set" various attributes of the content
object. Use whichever syntax feels best to you.
Getters
m.content('attributeName') m.content().get('attributeName') m.content().get{AttributeName}() m.content().getValue('attributeName')
Setters
m.content('attributeName', 'someValue') m.content().set('attributeName', 'someValue') m.content().set{AttributeName}('someValue') m.content().setValue('attributeName', 'someValue')
Returns
A populated content
bean/object.
Usage
Use this scope to access information about the content
item being served in the current request.
Attributes
See the Content Bean section for details on available attributes.
Helper Methods
See the Content Bean section for details on available helper methods..