Function: {asset}


{asset name="string" id="string" tag="string" class="string"}

Renders an asset from the controller.

Assets in Vanilla are containers for different sets of content. The content of each of these asset containers is variable depending on the page. The content of each asset is not currently configurable via the template.

Vanilla’s asset names are Head, Foot, Content and Panel. Your template will need to contain the Head, Foot and Content assets. The Panel asset is optional, but you’ll likely want to at least include it in the Profile, EditProfile and Conversation sections as it has important functionality in those sections that are not included in the Content asset.


Parameter Type Default Description
name string none The name of the asset
tag string $name The id of the tag if different than the name
id string none The type of tag to wrap the asset in
class string none The class to add to the asset wrapper

Cloud Hosting

We believe that online communities should be intuitive, engaging and true to your brand. Vanilla allows you to create a customized community that rewards positive participation, automatically curates content and lets members drive moderation.

Learn More …