Search Page Tags for Adaptive Layout
Tag itemsperpagedata


Stores the currently select number of items per page in a Data Object with the key selectedValue. This tag only works with the Search Page Adaptive Layout.

Example:
<select>
 <pt:searchpage.itemsperpagedata pt:id="pageSize"/>
 <pt:core.comment>This collection contains the page size list meta-data.</pt:core.comment>
 <pt:logic.collection pt:key="pagesizes">
  <pt:logic.data size="10"/>
  <pt:logic.data size="20"/>
 </pt:logic.collection>
 <pt:logic.foreach pt:data="pagesizes" pt:var="thissize">
  <pt:logic.intexpr pt:expr="($pageSize.selectedValue) == ($thissize.size)" pt:key="selectedOption"/>
  <pt:logic.if pt:expr="$selectedOption">
   <pt:logic.iftrue><pt:core.html pt:tag="option" selected value="$thissize.size">
    <pt:logic.value pt:value="$thissize.size"/>
   </pt:core.html></pt:logic.iftrue>
   <pt:logic.iffalse><pt:core.html pt:tag="option" value="$thissize.size">
    <pt:logic.value pt:value="$thissize.size"/>
   </pt:core.html></pt:logic.iffalse>
  </pt:logic.if>
 </pt:logic.foreach>
</select>


Tag Information
Tag Nameitemsperpagedata

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 attribute is added to this Data Object: selectedValue - The value of the currently selected page size or -1 if none is selected.
scopestringfalseportlet requestThe scope used to store the data. See the Logic tag library for a list of all available scopes.
onchangestringfalsechangeItemsPerPageThe onchange function name that triggers the change of page size. Requires the new value as a parameter.


Copyright 2005 Plumtree Software, Inc.