News:Search.Dropdown.Year

Version: - string  

Summary

Returns the Year dropdown.

Settings

The value is generated automatically.

Remarks

The value is returned as a HTML code snippet containing an <select> tag.

The tag is only used in the Search template when search is enabled.

Examples

Outputting the template tag

@GetString("News:Search.Dropdown.Year")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@News:Search.Dropdown.Year-->

Check if string has a value

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