Global:Page.Editor.Phone

Version: - globalvalue  

Summary

Returns the phone number of the last editor of the current page.

Settings

The value is based on the Telephone input field in the Personal section for the user.

(Users tab > Group/User > Information tab > Personal > Phone)

Examples

Outputting the template tag

@GetGlobalValue("Global:Page.Editor.Phone")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Page.Editor.Phone"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetGlobalValue("Global:Page.Editor.Phone"); }

Outputting the template tag

<!--@Global:Page.Editor.Phone-->

Check if globalvalue has a value

<!--@If Defined(@Global:Page.Editor.Phone)--> Let's output this tag here: <strong><!--@Global:Page.Editor.Phone--></strong> <!--@EndIf(@Global:Page.Editor.Phone)-->