Text
Version: - stringSummary
Returns the comment text.
Settings
The value is based on the Comment field for the comment.
(Frontend comments form or Modules tab > News > Category > News > Content > Comments > Comment > Comment)
Examples
Outputting the template tag
@GetString("Text")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Text"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Text");
}
Outputting the template tag
<!--@Text-->
Check if string has a value
<!--@If Defined(@Text)-->
Let's output this tag here: <strong><!--@Text--></strong>
<!--@EndIf(@Text)-->