News:FirstXCharClean
Version: - stringSummary
Returns the first X
characters of the current news item main text or teaser text.
Settings
Not documented
Examples
Outputting the template tag
@GetString("News:FirstXCharClean")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("News:FirstXCharClean"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("News:FirstXCharClean");
}
Outputting the template tag
<!--@News:FirstXCharClean-->
Check if string has a value
<!--@If Defined(@News:FirstXCharClean)-->
Let's output this tag here: <strong><!--@News:FirstXCharClean--></strong>
<!--@EndIf(@News:FirstXCharClean)-->