DwPageEditorUsername

Version: - string  

Summary

Returns the user name of the editor.

Settings

The value is based on the User name input field for the user.

(User Management > User > User tab > User info panel > User name)

Examples

Outputting the template tag

@GetString("DwPageEditorUsername")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@DwPageEditorUsername-->

Check if string has a value

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