DwSearchResultIcon

Version: - string  

Summary

Returns the icon of the result item extension.

Settings

The value is generated automatically.

Remarks

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

Examples

Outputting the template tag

@GetString("DwSearchResultIcon")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("DwSearchResultIcon"); }

Outputting the template tag

<!--@DwSearchResultIcon-->

Check if string has a value

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