News:CategoryName
Version: - stringSummary
Returns the category name in which the news item should be created.
Settings
The value comes from the Add to category field.
(Page > Paragraph > Module tab > Frontend editing > Frontend editing panel)
Examples
Outputting the template tag
@GetString("News:CategoryName")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("News:CategoryName"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("News:CategoryName");
}
Outputting the template tag
<!--@News:CategoryName-->
Check if string has a value
<!--@If Defined(@News:CategoryName)-->
Let's output this tag here: <strong><!--@News:CategoryName--></strong>
<!--@EndIf(@News:CategoryName)-->