Showing a Custom Field
Category: Graffiti Tips
To add a custom field in a view, include a reference to the field as:
$post.CustomFieldName
As an example, to include the custom field "customer" in the post view template, include:
$post.Customer
To prevent a null or empty mark-up associated with your custom field from being displayed, surround the mark-up with an #if block. As an example:
#if ((!$macros.IsNull($post.ImageUrl)) && ($post.ImageUrl != ""))
<p><img src="$post.ImageUrl" alt="$post.Title" align="left" style="margin-right: 10px;" /></p>
#end
