CustomFields Template Tags
Here is a list of template tags provided by CustomFields
Custom Template Tags
By default, every custom field will have a custom template tag assigned to it. You can use these template tags just like any other in your templates and within the right context. For example, if you have created a custom entry field named Mood, by default the custom template tag will be MTEntryDataMood. You can use this tag like so:
<MTEntries>
<MTIfNonEmpty tag="EntryDataMood">My Mood: <MTEntryDataMood></MTIfNonEmpty>
</MTEntries>
On the field editing screen, you will also see a small template code snippet that you can copy and paste into your templates to publish data stored in the field.
MTEntryCustomFields, MTPageCustomFields, MTCategoryCustomFields, MTFolderCustomFields
These are container template tags that allow you to loop or iterate through all the custom fields created for the corresponding system object.
MTEntryCustomFieldName, MTPageCustomFieldName, MTCategoryCustomFieldName, MTFolderCustomFieldName
These tags can be used within the appropriate MTCustomFields container tag and display the name of the current field.
MTEntryCustomFieldDescription, MTPageCustomFieldDescription, MTCategoryCustomFieldDescription, MTFolderCustomFieldDescription
These tags can be used within the appropriate MTCustomFields container tag and display the description of the current field.
MTEntryCustomFieldValue, MTPageCustomFieldValue, MTCategoryCustomFieldValue, MTFolderCustomFieldValue
These tags can be used within the appropriate MTCustomFields container tag and display the value entered for the current field.
MTCustomFields Example
Here are a couple of examples of using the MTCustomFields tags to loop through fields and display their name and value (if a value has been entered!)
<MTEntries>
<h2><MTEntryTitle></h2>
<MTEntryCustomFields>
<p>
<MTIfNonEmpty tag="EntryCustomFieldValue">
<MTEntryCustomFieldName>: <MTEntryCustomFieldValue>
</MTIfNonEmpty>
</p>
</MTEntryCustomFields>
</MTEntries>
<MTCategories>
<h2><MTCategorylabel></h2>
<MTCategoryCustomFields>
<p>
<MTIfNonEmpty tag="CategoryCustomFieldValue">
<MTCategoryCustomFieldName>: <MTCategoryCustomFieldValue>
</MTIfNonEmpty>
</p>
</MTCategoryCustomFields>
</MTCategories>



