News:Search.Dropdown.Month

Version: - string  

Summary

Returns the Month 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.Month")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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