Meta.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("Meta.Description")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Meta.Description"); }

Outputting the template tag

<!--@Meta.Description-->

Check if string has a value

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