News:Search.Button.Href

Version: - string  

Summary

Returns the URL (enclosed in javascript) for the chosen search interval.

Settings

The value is generated automatically.

Remarks

The value should be assigned to the <a> href attribute of the search button.

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

Examples

Outputting the template tag

@GetString("News:Search.Button.Href")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@News:Search.Button.Href-->

Check if string has a value

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