Onlinehjälpen

Tag cloud portlet

NOTE! As of SiteVision 3, this Tag cloud portlet replaces the "old" Tag cloud portlet.

The custom Velocity template in the Tag cloud portlet uses the JCR (Java Content Repository, JSR 283) programming model. The SiteVision API is available here

Elements available in the Velocity Context
NameType and Description
requestjavax.portlet.PortletRequest
 The portlet request
portletjavax.jcr.Node
 This portlet. See available properties in table below
jcrSessionjavax.jcr.Session
 The JCR Session
sitevisionUtilssenselogic.sitevision.api.Utils
 The main entry point to all utility classes
Additional properties available for the portlet element ($portlet)
NameType and Description 
tagFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
showNofHitsjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the 'Show number of hits' in the tag cloud configuration 
limitNofTagsjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the 'Limit number of tags' in the tag cloud configuration 
nofTagsLimitjavax.jcr.PropertyType.LONG 
 Corresponds to the value of 'Limit number of tags' in the tag cloud configuration 
tagMinSizejavax.jcr.PropertyType.LONG 
 The min size in % 
tagMaxSizejavax.jcr.PropertyType.LONG 
 The max size in % 
orderByjavax.jcr.PropertyType.STRING 
 Sort order ("alfabetic" or "weight") 
typejavax.jcr.PropertyType.STRING 
 Type of display ("cloud" or "list") 
cloudjavax.jcr.PropertyType.WEAKREFERENCE 
 The JCR-node containing the tag cloud data. The actual node can be resolved by calling getNode() on this property 

The cloud node has a number of sub nodes which correspond the tags of the tag cloud. It has the following properties:

NameType and Description 
sizejavax.jcr.PropertyType.LONG 
 The number of tags in the cloud 

A tag node has the following properties:

NameType and Description 
namejavax.jcr.PropertyType.STRING 
 The name of the tag. Corresponds to the metadata value 
classjavax.jcr.PropertyType.STRING 
 The HTML class attribute for the tag 
weightjavax.jcr.PropertyType.LONG 
 The weight of the tag ranging from 100 to tagMaxSize with steps of 10 
scorejavax.jcr.PropertyType.DOUBLE 
 The score of the tag corresponding to the number of hits 
linkjavax.jcr.PropertyType.STRING 
 The tag link (only availble if a search result page has been set up in the tag cloud configuration) pointing to the search result page 

Sidan uppdaterad:

Nästa generations publiceringsverktyg är här!

se-sto-ste-sv5-2.sitevision-cloud.net
18.221.85.33