Pathways Tags for Adaptive Layout
Tag tagclouddata


Generates a data collection needed to show a tag cloud, and stores it in memory using the variable name specified by the id attribute. By default the tag cloud retrieved will use the Everyone View ("ev"). The view can be specified using the tagview attribute. The tagcount attribute specifies the maximum number of tags to return. By default it will return 20 tags.Each result is a DataObject with the following variables:
Use tags from the Logic library to iterate over the list and display results.

Example:
This simple example loops through results and shows the name and weight (as a clickable link) for each tag.

<pt:pathways.tagclouddata pt:id="tagcloudresults"/>
<pt:logic.foreach pt:data="tagcloudresults" pt:var="tag">
<pt:logic.value pt:value="tag.normalizedcount"/>. <pt:core.html pt:tag="a" href="[TAG_SEARCH_URL]" title="tag.name"><pt:logic.value pt:value="tag.name"/></pt:core.html>

</pt:logic.foreach>


Tag Information
Tag Nametagclouddata

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.
scopestringfalseportlet requestThe scope used to store the data. See the Logic tag library for a list of all available scopes.
tagviewstringfalseevThis attribute specifies the Pathways view to use when retrieving the tag cloud.
tagcountstringfalse20This attribute specifies the number of tags returned for the tag cloud.


Copyright 2005 Plumtree Software, Inc.