News:Search.Text

Version: - string  

Summary

Returns the text for the year/month dropdown.

Settings

The value is based on the Text 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.Text")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("News:Search.Text"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("News:Search.Text"); }

Outputting the template tag

<!--@News:Search.Text-->

Check if string has a value

<!--@If Defined(@News:Search.Text)--> Let's output this tag here: <strong><!--@News:Search.Text--></strong> <!--@EndIf(@News:Search.Text)-->