Dw_Description

Version: - string  

Summary

Returns the description for the current page.

Settings

The value is based on the Description input field in the page properties page.

(Page > Properties > Menu item tab > Meta > Description)

Examples

Outputting the template tag

@GetString("Dw_Description")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Dw_Description-->

Check if string has a value

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