Threads
Summary
The Threads
loop lets you display information about all threads.
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:FirstAnswer.Author.Group.ID
Returns group ID of author the first answer.
@GetString("Forum:FirstAnswer.Author.Group.ID")
Forum:FirstAnswer.Author.Group.Name
Returns user group name the author of first answer belongs to.
@GetString("Forum:FirstAnswer.Author.Group.Name")
Forum:FirstAnswer.Author.Group.ParentID
Returns user group parent ID the author of first answer belongs to.
@GetInteger("Forum:FirstAnswer.Author.Group.ParentID")
Forum:LastReply.Author.Group.ID
Returns user group ID the author of first answer belongs to.
@GetString("Forum:LastReply.Author.Group.ID")
Forum:LastReply.Author.Group.Name
Returns user group name the author of last reply belongs to.
@GetString("Forum:LastReply.Author.Group.Name")
Forum:LastReply.Author.Group.ParentID
Returns user group parent ID the author of last reply belongs to.
@GetInteger("Forum:LastReply.Author.Group.ParentID")
Forum:Thread.Author.Group.263
Returnst True if the author belongs to not system extranet group.
@GetBoolean("Forum:Thread.Author.Group.263")
Forum:Thread.Author.Group.271
Returnst True if the author belongs to not system extranet group.
@GetString("Forum:Thread.Author.Group.271")
Forum:Thread.Author.Image.Clean
Returns the path to the image of the thread's author.
@GetString("Forum:Thread.Author.Image.Clean")
Forum:Thread.Author.Image.IsInternal
Returns True if image of thread's author is internal.
@GetString("Forum:Thread.Author.Image.IsInternal")
Forum:Thread.AuthorEMail
Returns E-mail address of the thread's author,can be based on e-mail of logged extranet user.
@GetString("Forum:Thread.AuthorEMail")
Forum:Thread.Body.Resume
Returns body text of the thread.
@GetString("Forum:Thread.Body.Resume")
Forum:Thread.CategoryID
Returns category ID the thread belongs to.
@GetInteger("Forum:Thread.CategoryID")
Forum:Thread.Created
Returns timestamp of the thread creation.
@GetDate("Forum:Thread.Created")
Forum:Thread.FirstAnswerMessageID
Returns message IF of thread's firlst answer.
@GetInteger("Forum:Thread.FirstAnswerMessageID")
Forum:Thread.HasAnswer
Returnst True if the thread has at leas one answer.
@GetString("Forum:Thread.HasAnswer")
Forum:Thread.IsAnswer
Returns True if the thread is answer.
@GetBoolean("Forum:Thread.IsAnswer")
Forum:Thread.IsSticky
Returns True if the thread is sticky.
@GetBoolean("Forum:Thread.IsSticky")
Forum:Thread.IsSubscribed
Returns True if the thread is subscribed.
@GetBoolean("Forum:Thread.IsSubscribed")
Forum:Thread.IsThread
Returns True if the thread is trhead.
@GetBoolean("Forum:Thread.IsThread")
Forum:Thread.Replies.Count
Returnst count of replies related to the thread.
@GetInteger("Forum:Thread.Replies.Count")
Available loops
Forum:Thread.Author.Groups
The Forum:Thread.Author.Groups
loop lets you display various information about groups of the thread's author.
@foreach (LoopItem item in GetLoop("Forum:Thread.Author.Groups")){ <p>@item.GetValue("TagName")</p> }