| |||||||
FRAMES NO FRAMES |
<pt:logic.variable pt:key="test" pt:value="my value"/>
would store the value 'my value' as an editable shared variable using the key 'test'.<pt:logic.collection pt:key="teststringcollection">
<pt:logic.variable pt:value="my string data"/>
<pt:logic.variable pt:value="my other string data"/>
</pt:logic.collection>
Tag Information | |
Tag Name | variable |
Attributes | ||||
Name | Type | Required | Default Value | Description |
key | string | false | null | The key used to store the variable in memory. This attribute is required unless this tag is being used inside a collection tag. If this attribute is present and this tag is being used inside a collection tag, this attribute will take precedence and the data will be stored using the key specified in the attribute. |
value | string | true | null | The variable value. |
scope | string | false | portlet request | The scope used to store the variable. See the Logic Tag Library description for more details about valid scope arguments. |
| |||||||
FRAMES NO FRAMES |