DW_extranet_AccessUserPhone

Version: -  

Summary

Returns the phone number of the current Extranet user.

Settings

The value is taken from the Telephone field in the user's settings.
(Users > User > Information tab > Information panel)

Remarks

This requires that the user is logged on through the extranet module.

Examples

Outputting the template tag

@GetObject("DW_extranet_AccessUserPhone")

Check if tag has a value

@if(!var.IsNullOrWhiteSpace(GetObject("DW_extranet_AccessUserPhone"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ var storedTag = GetObject("DW_extranet_AccessUserPhone"); }

Outputting the template tag

<!--@DW_extranet_AccessUserPhone-->

Check if object has a value

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