News:Search.Button.Text
Version: - stringSummary
Returns the button text for the year/month dropdown.
Settings
The value is based on the Apply button field in the paragraph module settings.
(Page > Paragraph > Module tab > Search > Apply button)
Remarks
The tag is only used in the Search template when search is enabled.
Examples
Outputting the template tag
@GetString("News:Search.Button.Text")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("News:Search.Button.Text"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("News:Search.Button.Text");
}
Outputting the template tag
<!--@News:Search.Button.Text-->
Check if string has a value
<!--@If Defined(@News:Search.Button.Text)-->
Let's output this tag here: <strong><!--@News:Search.Button.Text--></strong>
<!--@EndIf(@News:Search.Button.Text)-->