Transformer Tags
Tag namespace
This tag allows you to define your own token (in the pt:token attribute), which
is replaced with the portlet ID.
Note: Valid values for the token must be in the ASCII range
0x21 to 0x7E, excluding "<". The scope of the token runs from the
tag defining it to the end of the file; you cannot use a token prior to defining
it. A second pt:namespace tag with a different token redefines it; two tokens
cannot be defined at the same time.
Example:
<pt:namespace pt:token="$$TOKEN$$" xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>
<a onclick="doStuff$$TOKEN$$();" href="#">do
stuff</a>
<script>
function doStuff$$TOKEN$$() {
alert("hello");
}
</script>
Tag Information |
Tag Name |
namespace |
Attributes |
Name |
Type |
Required |
Default Value |
Description |
token |
string |
true |
null |
Token to be replaced the portlet ID |
Copyright 2005 Plumtree Software, Inc.