Search Page Tags for Adaptive Layout
Tag typefilterdata


Generates the data describing the type filter list on the current page, and stores it in memory using the variable name specified by the id attribute. It also stores the list of type filter options under a key available in the data object. This tag only works with the Search Page Adaptive Layout.

Example:
<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 Nametypefilterdata

Attributes
NameTypeRequiredDefault ValueDescription
idstringtruenullThe 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.
scopestringfalseportlet requestThe scope used to store the data. See the Logic tag library for a list of all available scopes.
onchangestringfalsefilterTypeThe name to use for the onchange javascript that this tag will create.


Copyright 2005 Plumtree Software, Inc.