Portlet Page Tags for Adaptive Layout
Tag portletcollapseexpandbuttondisplay


Displays the collapse/expand button of a portlet from a data object, specified by the pt:datavar attribute.

Example:
<pt:portletpage.portletregiondata pt:key="var1" pt:region="1"/>
<pt:logic.foreach pt:data="var1" pt:var="curr">
<pt:portletpage.portletcollapseexpandbuttondisplay pt:datavar="curr"/>
</pt:logic.foreach>
Displays the first entry in the collection
<pt:portletpage.portletcollapseexpandbuttondisplay pt:datavar="var1" colindex="0" />


Tag Information
Tag Nameportletcollapseexpandbuttondisplay

Attributes
NameTypeRequiredDefault ValueDescription
datavarstringtruenullThe key to the tag memory variable with portlet data to display. The data is set by portletpage.portletregiondata and other similar data tags. This tag is also able to display a single portlet in a collection of portlet data. Use the pt:colindex attribute to specify the index in the collection.
colindexintfalse0Used to get portlet data from a specific index in a collection if the pt:datavar attribute references a portlet data collection instead of a single portlet. The default value is 0 (the first entry in the collection). The value of this attribute is ignored if pt:datavar refers to a single portlet data IDataObject. Use this tag together with the logic.foreach tag to iterate over all portlets in a collection and display them all.
onclickstringfalsenullThis is used to specify an onclick function name to use instead of having the URL in the anchor's href. The function specified must take a URL as a parameter. This should the same as the onclick attribute of the collapseexpandjs tag in the Portlet Page Editor library (portletpageeditor).
scopestringfalseportlet requestThe scope used to store the data collection. See logic tag library tagdocs for further information on scope.


Copyright 2005 Plumtree Software, Inc.