Blog category portlet

The custom Velocity template in the Blog category 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
portletjavax.jcr.Node
 This portlet. See properties below
sitevisionUtilssenselogic.sitevision.api.Utilsopens in new window
 The main entry point to all utility classes
jcrSessionjavax.jcr.Session
 The JCR Session
requestjavax.portlet.PortletRequest
 The portlet request
Additional properties available for the portlet element ($portlet)
NameType and Description 
categoryFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
categoriesjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node where all categories are available as sub nodes (see documentation of category properties below). 
Additional properties available for the categories element
NameType and Description 
showAllTextjavax.jcr.PropertyType.STRING 
 A 'Show all categories' text. 
showAllUrljavax.jcr.PropertyType.STRING 
 An URL that instructs a blog portlet to show all blog entries. 
Additional properties available for each category
NameType and Description 
countjavax.jcr.PropertyType.LONG 
 The number of blog entries where this category is selected. 
namejavax.jcr.PropertyType.STRING 
 The name of the category. 
urljavax.jcr.PropertyType.STRING 
 An URL that instructs a blog portlet to show blog entries with this category. 

Denna sida publicerades: 2010-10-27

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