Dw_Keywords

Version: - string  

Summary

Returns the keywords for the current page.

Settings

The value is based on the Keyword(s) input field in the page properties page.

(Page > Properties > Menu item tab > Meta > Keyword(s))

Examples

Outputting the template tag

@GetString("Dw_Keywords")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Dw_Keywords-->

Check if string has a value

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