| |||||||
FRAMES NO FRAMES |
<form name="item-type">
<pt:searchpage.typefilterdata pt:id="typeFilter"/>
<select class="ali-kd-search-pulldown" onchange="filterType(this.value); return false;">
<pt:logic.foreach pt:data="$typeFilter.typesKey" pt:var="option">
<pt:logic.variable pt:key="optionValue" pt:value="$option.value"/>
<pt:logic.intexpr pt:expr="($typeFilter.selectedValue) == ($optionValue)" pt:key="selectedOption"/>
<pt:logic.if pt:expr="$selectedOption">
<pt:logic.iftrue>
<pt:core.html pt:tag="option" selected value="$option.value"><pt:logic.value pt:value="$option.name"/></pt:core.html>
</pt:logic.iftrue>
<pt:logic.iffalse>
<pt:core.html pt:tag="option" value="$option.value"><pt:logic.value pt:value="$option.name"/></pt:core.html>
</pt:logic.iffalse>
</pt:logic.if>
</pt:logic.foreach>
</select>
</form>
Tag Information | |
Tag Name | typefilterdata |
Attributes | ||||
Name | Type | Required | Default Value | Description |
id | string | true | null | The name of the variable in memory where the DO data created by this tag is stored. Specify this ID in the data attribute (most commonly the DATAVAR attribute) for any display tag consuming DO data. Multiple data tags can share the same ID, in which case they are added to a list in the order they were processed. The following attributes are added to this Data Object: selectedValue - the value of the currently selected type or -1 if none is selected, and typesKey - the key used to store the list of filter types in memory. Each data object in the filter type list has a name and a value that can be retrieved. |
scope | string | false | portlet request | The scope used to store the data. See the Logic tag library for a list of all available scopes. |
onchange | string | false | filterType | The name to use for the onchange javascript that this tag will create. |
| |||||||
FRAMES NO FRAMES |