User's Manual

has read access, that is, not if the user has full access, prefix the privilege name with a # character and use the
parameter name readonly” (or ro”).
{nwa_privilege full=create_user} .. content .. {/nwa_privilege}
The full” (synonym rw”) parameter specifies the name of a privilege to check for full read-write access. The
“name” parameter is the name of the privilege to check. If “name” is prefixed with a !, the output is included
only if that privilege is NOT granted (inverts the sense of the test). An optional “level” parameter may be
specified, which is the level of access to the privilege required (default is 0, or any access).
nwa_replace
{nwa_replace 1= 2=…} … {/nwa_replace}
Smarty registered block function. Replace %1, %2, etc with the passed parameters 1=, 2=, etc.
Usage example:
{nwa_replace 1=$param1 2=$param2 ...}
This is the text resource to be replaced, where %1 and %2
are the arguments, etc.
{/nwa_replace}
The numbered parameters are expanded in the translated string with the positional arguments %1, %2 and so
forth.
nwa_text
{nwa_text} {/nwa_text}
Smarty registered block function. Translates the block’s content, if a language pack is available.
Usage example:
{nwa_text id=TEXT_ID 1=$param1 2=$param2 ...}
This is the text resource to be translated, where %1 and %2 are the arguments, etc.
{/nwa_text}
l The id” parameter is the text ID of the resource.
l The numbered parameters are expanded in the translated string with the positional arguments %1, %2 and
so forth.
nwa_userpref
{nwa_userpref …}
Smarty template function. Returns the current setting of a user preference (stored with the Web application
user account)
Usage examples:
{nwa_userpref name=prefName}
{nwa_userpref name=prefName default=10}
{nwa_userpref has=prefName}
l “name: return the named user preference
l “default”: supply a value to be returned if the preference is not set
l “has: return 1 if the named preference exists for the current user, 0 if the preference does not exist
nwa_youtube
{nwa_youtube video=ID width=cx height=cy …} … {/nwa_youtube}
Smarty registered block function. Provides simple support for embedding a YouTube video in the body of a
page. The content of this block is the initial alternate content” that will be presented until the YouTube player
can be embedded (if it can be embedded).
Dell Networking W-ClearPass Guest 6.4 | User Guide Reference | 495