DwSearchResultID

Version: - string  

Summary

Returns the ID of the result item.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("DwSearchResultID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@DwSearchResultID-->

Check if string has a value

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