Meta.Keywords

Version: - string  

Summary

Returns the keywords for the current page.

Settings

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

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

 

Examples

Outputting the template tag

@GetString("Meta.Keywords")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Meta.Keywords-->

Check if string has a value

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