DwSpellSuggest.UrlEncoded

Version: - string  

Summary

Returns an encoded suggestion phrase.

Settings

The value is generated automatically and based on the search phrase that the user has entered in the search field.

Remarks

A standard template SearchBoxSpellcheck.html with the suggestion feature is found in the Templates/Searchv1 folder.

The suggestion feature is based on the spell checking feature from the editor. It uses the regional settings of the area to determine what dictionary to use and it supports the same as the spell checker in the editor. If no matching dictonary is found, it falls back to en-us.

Examples

Outputting the template tag

@GetString("DwSpellSuggest.UrlEncoded")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("DwSpellSuggest.UrlEncoded"); }

Outputting the template tag

<!--@DwSpellSuggest.UrlEncoded-->

Check if string has a value

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