Add and remove bookmark portlet

The custom Velocity template in the Add / remove bookmark 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 
nofBookmarksjavax.jcr.PropertyType.LONG 
 The current number of bookmarks 
addURLjavax.jcr.PropertyType.URI 
 The URL used to add the current page as bookmark 
removeURLjavax.jcr.PropertyType.URI 
 The URL used to remove the current page as bookmark 
addUseImagejavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the 'Use image' of the add bookmark portlet configuration 
addImagejavax.jcr.PropertyType.WEAKREFERENCE 
 Corresponds to the value of 'Use image' of the add bookmark portlet configuration 
addImageDescjavax.jcr.PropertyType.STRING 
 Corresponds to the 'Image description' of the add bookmark portlet configuration 
addUseTextjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the 'Use text' of the add bookmark portlet configuration 
addTextjavax.jcr.PropertyType.STRING 
 Corresponds to the value of 'Use text' of the add bookmark portlet configuration 
addTextFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
removeUseImagejavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the 'Use image' of the remove bookmark portlet configuration 
removeImagejavax.jcr.PropertyType.WEAKREFERENCE 
 Corresponds to the value of 'Use image' of the remove bookmark portlet configuration 
removeImageDescjavax.jcr.PropertyType.STRING 
 Corresponds to the 'Image description' of the remove bookmark portlet configuration 
removeUseTextjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the 'Use text' of the remove bookmark portlet configuration 
removeTextjavax.jcr.PropertyType.STRING 
 Corresponds to the value of 'Use text' of the remove bookmark portlet configuration 
removeTextFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
maxReachedUseImagejavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the 'Use image' of the max reached bookmark portlet configuration 
maxReachedImagejavax.jcr.PropertyType.WEAKREFERENCE 
 Corresponds to the value of 'Use image' of the max reached bookmark portlet configuration 
maxReachedImageDescjavax.jcr.PropertyType.STRING 
 Corresponds to the 'Image description' of the max reached bookmark portlet configuration 
maxReachedUseTextjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the 'Use text' of the max reached bookmark portlet configuration 
maxReachedTextjavax.jcr.PropertyType.STRING 
 Corresponds to the value of 'Use text' of the max reached bookmark portlet configuration 
maxReachedTextFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 

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