Tag cloud result portlet

NOTE! This portlet shows the result based on the request invoked via a 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
velocityEvaluatorsenselogic.sitevision.api.render.velocity.VelocityEvaluator
 A evaluator that can parse Velocity templates or Velocity expressions on the fly
searchResultsenselogic.sitevision.api.search.SearchResult
 The search result that holds all hits
Additional properties available for the portlet element ($portlet)
NameType and Description 
 Days 
limitNofDaysjavax.jcr.PropertyType.BOOLEAN 
 Whether to limit number of days or not 
nofDaysjavax.jcr.PropertyType.LONG 
 Number of days 
   
 Search failed 
showSearchErrorjavax.jcr.PropertyType.BOOLEAN 
 Whether or not to show search errors or no hits messages 
errorMessagejavax.jcr.PropertyType.STRING 
 An i18n:ized message describing why search could not be executed 
searchErrorFontjavax.jcr.PropertyType.WEAKREFERENCE 
 The search error font Node (sv:font) 
   
 Paging 
usePagingjavax.jcr.PropertyType.BOOLEAN 
 Whether or not to use paging 
hitsPerPagejavax.jcr.PropertyType.LONG 
 Maximum number of hits to display for each paged frame 
pagingFontjavax.jcr.PropertyType.WEAKREFERENCE 
 The paging font Node (sv:font) 
pagingPositionjavax.jcr.PropertyType.STRING 
 Where the paging navigation should be located ("top", "bottom" or "top_bottom") 
ajaxPagingBaseURLjavax.jcr.PropertyType.STRING 
 The base URL to use for Ajax paging calls 
isRenderingAjaxPagingResultjavax.jcr.PropertyType.BOOLEAN 
 Whether or not the paged search result is retrieved via Ajax 
startAtHitjavax.jcr.PropertyType.LONG 
 First hit number for the paged search result 
previousFrameURIjavax.jcr.PropertyType.STRING 
 The relative URL for previous paged frame 
nextFrameURIjavax.jcr.PropertyType.STRING 
 The relative URL for next paged frame 
   
 Index fields 
summaryFieldjavax.jcr.PropertyType.STRING 
 Name of the summary field 
titleFieldjavax.jcr.PropertyType.STRING 
 Name of the title field 
nameFieldjavax.jcr.PropertyType.STRING 
 Name of the name field 
namepathFieldjavax.jcr.PropertyType.STRING 
 Name of the name path field 
urlFieldjavax.jcr.PropertyType.STRING 
 Name of the absolute URL field 
uriFieldjavax.jcr.PropertyType.STRING 
 Name of the relative URL field 
lastPublishedFieldjavax.jcr.PropertyType.STRING 
 Name of the last published field 
sizeFieldjavax.jcr.PropertyType.STRING 
 Name of the size field 
siteFieldjavax.jcr.PropertyType.STRING 
 Name of the site field 
mimetypeFieldjavax.jcr.PropertyType.STRING 
 Name of the mime type field 
   
 Search hits 
showSearchHitNumberingjavax.jcr.PropertyType.BOOLEAN 
 Whether or not search hits should be displayed numbered 
showFileIconsjavax.jcr.PropertyType.BOOLEAN 
 Whether or not a file icons should be displayed for each search hit 
useSearchHitBackgroundColorjavax.jcr.PropertyType.BOOLEAN 
 Whether or not a searchHitBackgroundColor (see line below) are in use 
searchHitBackgroundColorjavax.jcr.PropertyType.WEAKREFERENCE 
 The background color for every odd search hit (sv:color) 
headingFieldjavax.jcr.PropertyType.STRING 
 What field to fetch the heading text from ("nameField" or "titleField", see Index fields section above) 
searchHitHeadingFontjavax.jcr.PropertyType.WEAKREFERENCE 
 The hit heading font Node (sv:font) 
showSearchHitExcerptjavax.jcr.PropertyType.BOOLEAN 
 Whether or not to show hit excerpts 
searchHitExcerptFontjavax.jcr.PropertyType.WEAKREFERENCE 
 The hit excerpt font Node (sv:font) 
searchHitExcerptLengthjavax.jcr.PropertyType.LONG 
 Approximate length (char count) for search hit excerpts 
showSearchHitInfojavax.jcr.PropertyType.BOOLEAN 
 Whether or not to show hit info (date + size) 
searchHitInfoFontjavax.jcr.PropertyType.WEAKREFERENCE 
 The hit info font Node (sv:font) 
showSearchHitPathjavax.jcr.PropertyType.BOOLEAN 
 Whether or not to show a linked path to the search hit 
searchHitPathFontjavax.jcr.PropertyType.WEAKREFERENCE 
 The hit path font Node (sv:font) 
   
 Misc 
useCustomSortFieldsjavax.jcr.PropertyType.BOOLEAN 
 Whether or not to use custom sort fields (i.e. use a custom "relevance" sorting") 
useCustomIndexjavax.jcr.PropertyType.BOOLEAN 
 Whether or not a custom index is used 
   
 Aggregated portlet preferences/settings: 
templatesjavax.jcr.PropertyType.WEAKREFERENCE 
 A temporary Node holding all sub-templates used by the main template. See available properties in table below 
bundlejavax.jcr.PropertyType.WEAKREFERENCE 
 A temporary Node holding all i18n:ized texts used for output. See available properties in table below 
Properties available for the templates Node
NameType and Description 
pagingTemplatejavax.jcr.PropertyType.STRING 
 The paging Velocity template 
pagingScriptTemplatejavax.jcr.PropertyType.STRING 
 The paging script Velocity template 
hitsTemplatejavax.jcr.PropertyType.STRING 
 The search hits Velocity template 
noHitsTemplatejavax.jcr.PropertyType.STRING 
 The no hits/search error Velocity template 
Properties available for the bundle Node
NameType and Description 
noInformationAvailableTextjavax.jcr.PropertyType.STRING 
 The i18n:ized last modified text (en: "No information available") 
lastModifiedTextjavax.jcr.PropertyType.STRING 
 The i18n:ized last modified text (en: "Last modified:") 
sizeTextjavax.jcr.PropertyType.STRING 
 The i18n:ized size text (en: "Size:") 
previousTextjavax.jcr.PropertyType.STRING 
 The i18n:ized previous text (en: "Previous") 
nextTextjavax.jcr.PropertyType.STRING 
 The i18n:ized next text (en: "Next") 

Denna sida publicerades: 2012-05-15

Skriv ut PDF-avsnitt

Hjälpte informationen på den här sidan dig?

Missa inga nya rön, tips och tricks! Prenumerera på insite!

Find us!

SiteVision AB (Headquarter)
Vasagatan 10
702 10 Orebro
Sweden

Info: +46 19-17 30 30
Support: +46 19-17 30 39

Latest Tweets