Onlinehjälpen

Comments portlet

The custom Velocity template in the Comments 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.Utils
 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 
bundlejavax.jcr.PropertyType.STRING 
 A Node that contains alla language bundle properties. The actual node can be resolved by calling getNode() on this property 
iconsjavax.jcr.PropertyType.STRING 
 A Node that has all icon properties. The actual node can be resolved by calling getNode() on this property 
errorMessagesMultiValue of javax.jcr.PropertyType.STRING 
 The Collection of possible error messages for the posted data 
informationMessagesMultiValue of javax.jcr.PropertyType.STRING 
 Corresponds to the 'Show number of hits' in the tag cloud configuration 
toggleDisabledURLjavax.jcr.PropertyType.URI 
 URL to toggle hiden/disabled on the module. 
toggleClosedURLjavax.jcr.PropertyType.URI 
 URL to toggle the ability to add comments 
commentsjavax.jcr.PropertyType.STRING 
 A Node that contains all comments and URL specific for each comment. The actual node can be resolved by calling getNode() on this property 
createCommentURLjavax.jcr.PropertyType.URI 
 A URL to post comments to. 
rssLinkURLjavax.jcr.PropertyType.URI 
 URL for the RSS feed for comments. 
maxCommentsjavax.jcr.PropertyType.INTEGER 
 Corresponds to max number of comments setting 
limitCommentsjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the setting to limit amount of comments 
maxDaysjavax.jcr.PropertyType.INTEGER 
 Corresponds to max number of days setting. 
limitDaysjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to the setting to limit the number of days you can comment 
enableCaptchajavax.jcr.PropertyType.BOOLEAN 
 Corresponds to captch antispam setting 
commentFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
dateFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
headlineFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
inputFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
labelFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
nameFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
errorFontjavax.jcr.PropertyType.WEAKREFERENCE 
 A Node that has property selectorText (java.lang.String) - the css class name of the font . 
authorBackgroundColorjavax.jcr.PropertyType.WEAKREFERENCE 
  A sv:color Node that has property htmlHexValue (java.lang.String) - the hexvalue of the color. 
evenBackgroundColorjavax.jcr.PropertyType.WEAKREFERENCE 
  A sv:color Node that has property htmlHexValue (java.lang.String) - the hexvalue of the color 
oddBackgroundColorjavax.jcr.PropertyType.WEAKREFERENCE 
  A Node that has property htmlHexValue (java.lang.String) - the hexvalue of the color 
mandatoryFieldColorjavax.jcr.PropertyType.WEAKREFERENCE 
 A sv:color Node that holds the color for the "mandatory input field asterisk" [@since 2.6.2_03] 
rssEnabledjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to rss beeing enabled in the portlet configuration. 
reverseOrderjavax.jcr.PropertyType.BOOLEAN 
 Corresponds to setting to display comments in reverse order 
The Comments JCR node has a number of sub nodes. It has no properties.

Properties available for the comment nodes:

NameType and Description 
deleteURLjavax.jcr.PropertyType.STRING 
 The URL to delete a specific Comment 
hideURLjavax.jcr.PropertyType.STRING 
 The URL to hide a specific comment 
showURLjavax.jcr.PropertyType.STRING 
 The URL to show a specific comment 
commentjavax.jcr.PropertyType.WEAKREFERENCE 
 The SV.pageComment object 
The Bundle JCR node has no sub nodes. It has no properties.

Properties available for Bundle:

NameType and Description 
authorCommentjavax.jcr.PropertyType.STRING 
 I18n bundle text for Author comment 
byjavax.jcr.PropertyType.STRING 
 I18n bundle text for by 
commentsClosedjavax.jcr.PropertyType.STRING 
 I18n bundle text for Comment are closed 
commentsDisabledjavax.jcr.PropertyType.STRING 
 I18n bundle text for comments are hidden/disabled 
commentsjavax.jcr.PropertyType.STRING 
 I18n bundle text for Comments 
createCommentjavax.jcr.PropertyType.STRING 
 I18n bundle text for Create comment 
deleteCommentjavax.jcr.PropertyType.STRING 
 I18n bundle text for Delete comment 
deleteCommentConfirmjavax.jcr.PropertyType.STRING 
 I18n bundle text for Confirm deletion of comment 
hiddenCommentjavax.jcr.PropertyType.STRING 
 I18n bundle text for Hidden comment 
hideCommentjavax.jcr.PropertyType.STRING 
 I18n bundle text for Hide comment 
mandatoryTooltipjavax.jcr.PropertyType.STRING 
 I18n bundle text for Mandatory tooltip marker 
submitCommentjavax.jcr.PropertyType.STRING 
 I18n bundle text for Submit comment 
toggleClosedjavax.jcr.PropertyType.STRING 
 I18n bundle text for Toggle closed, returns corresponding string according to current status 
toggleDisabledjavax.jcr.PropertyType.STRING 
 I18n bundle text for Toggle disabled, returns corresponding string according to current status 
showCommentjavax.jcr.PropertyType.STRING 
 I18n bundle text for Show comment 
The Icons JCR node has no sub nodes. Each of the following properties can be resolved as a JCR node (the properties of of the resolved node is listed here). It has the following properties:
NameType and Description 
deleteCommentjavax.jcr.PropertyType.WEAKREFERENCE 
 Image for Delete comment icon.  
errorjavax.jcr.PropertyType.WEAKREFERENCE 
 Image for Error icon. 
hideCommentjavax.jcr.PropertyType.WEAKREFERENCE 
 Image for the Hide comment icon. 
informationjavax.jcr.PropertyType.WEAKREFERENCE 
 Image for the Information icon. 
rssjavax.jcr.PropertyType.WEAKREFERENCE 
 Image for the Rss icon. 
showCommentjavax.jcr.PropertyType.WEAKREFERENCE 
 Image for the Show Comment icon. 
The image icon JCR node has no sub nodes.  It has the following properties.
NameType and Description 
altjavax.jcr.PropertyType.STRING 
 I18n alt text from icon image. 
widthjavax.jcr.PropertyType.STRING 
 Width of image icon. 
heightjavax.jcr.PropertyType.STRING 
 Height of image icon. 
stylejavax.jcr.PropertyType.STRING 
 Specific style attributes for image icon. 
URLjavax.jcr.PropertyType.URI 
 The url for the image icon. 

Sidan uppdaterad:

Nästa generations publiceringsverktyg är här!

se-sto-ste-sv5-1.sitevision-cloud.net
54.227.104.229