Displaying Extended Attributes - Mura Docs v6

Displaying Extended Attributes

There are many ways you can display extended attributes. The most common way to display the value of an attribute is to use the content bean from the event upon rendering and ask for the attribute. This can be done by using the below code:

<cfoutput>#$.content( {attributeName} )#</cfoutput>

For the above example it would be:

<cfoutput>#$.content('productPrice')#</cfoutput>

It's important to know that each Mura type displays differently from the other. In the above we focused on how a page type would be set up, but a user type will be a little different (showing extended attributes on the edit profile screen, etc).

Also, you can also use similar code within the Body section of the page via Mura tags [mura] {code} [/mura]. For example:

[mura]$.content('productPrice')[/mura]