DWextranet_AccessUserPasswordErrorFieldData1

Version: - string  

Summary

Returns the minimum number of characters required for passwords.

Settings

The value comes from the Min. number of characters fieldin the the extended extranet security settings.
(Management settings - Control Panel - Modules - User Management - Password security - Extranet - Min. number of characters).

Remarks

The tag can be used in error messages for New passwords prompts like this:

<div id="DWextranet_ErrorCode1" Style="display:@GetValue("DWextranet_AccessUserPasswordErrorField1");">The Password requires minimum @GetValue("DWextranet_AccessUserPasswordErrorFieldData1") characters</div>

Examples

Outputting the template tag

@GetString("DWextranet_AccessUserPasswordErrorFieldData1")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@DWextranet_AccessUserPasswordErrorFieldData1-->

Check if string has a value

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