| |||||||
FRAMES NO FRAMES |
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:name
- The name of the result.count
- The number of times this tag has been applied on items.normalizedcount
- The weight of the result.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 Name | tagclouddata |
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. |
scope | string | false | portlet request | The scope used to store the data. See the Logic tag library for a list of all available scopes. |
tagview | string | false | ev | This attribute specifies the Pathways view to use when retrieving the tag cloud. |
tagcount | string | false | 20 | This attribute specifies the number of tags returned for the tag cloud. |
| |||||||
FRAMES NO FRAMES |