WML » Tags » access

Syntax:
<access ... />

The access tag provides information that dictates who may access a specific deck. By access, we mean that you can navigate from one deck to another (via links or an URL) and have the contents of the destination deck be displayed in your browser. (As the browser navigates, it performs access control checks to determine if the destination deck can be accessed from the current deck.)

If the access tag is not present in a deck, then the deck can be accessed from any other deck or card.
 
If the access tag is present, then the deck can only be accessed by other decks that match the values declared in either or both the domain and path attributes.
 
Only one access tag can occur in a deck and it can only be contained in the head element. (There is only one head element per deck, and it can only contain the access and meta elements.)
 
This is a self-closing tag.
 
Nested Tags:  None

Examples

Code:
...
<head>
   <access domain="devguru.com" />
</head>
...
Explanation:

In this code fragment, access is limited to other decks in the devguru.com domain.

Language(s): WML
Code:
...
<head>
   <access domain="devguru.com" path="/products/inventory" />
</head>
...
Explanation:

In this code fragment, an additional restriction to access is set by using the path attribute. Therefore, only decks that match the domain/path string "devguru.com/products/inventory" can access the destination deck.

Language(s): WML

See Also: