Replies
Summary
The Replies loop lets you display information about all replies.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
Forum:Reply.Author.[UserCustomFieldSystemName]
Returns value of the custom field for user who is author of the reply.
@GetString("Forum:Reply.Author.[UserCustomFieldSystemName]")
Forum:Reply.Author.[UserCustomFieldSystemName].Name
Returns name of the custom field for user who is author of the reply.
@GetString("Forum:Reply.Author.[UserCustomFieldSystemName].Name")
Forum:Reply.Author.[UserCustomFieldSystemName].Type
Returns type of the custom field for user who is author of the reply.
@GetString("Forum:Reply.Author.[UserCustomFieldSystemName].Type")
Forum:Reply.Author.CustomFieldsCount
Returns count of the user custom fields.
@GetString("Forum:Reply.Author.CustomFieldsCount")
Available loops
Forum:Reply.Author.CustomFields
Returns list of custom field for user who is author of the reply.
@foreach (LoopItem item in GetLoop("Forum:Reply.Author.CustomFields")){ <p>@item.GetValue("TagName")</p> }