Comments

Elements available in the Velocity Context

Name

Type and description

jcrSession

javax.jcr.Session


The JCR Session

portlet

javax.jcr.Node


This portlet. See properties below

request

javax.portlet.PortletRequest


The portlet request

sitevisionUtils

senselogic.sitevision.api.Utils


The main entry point to all utility classes

 

Additional properties available for the portlet element ($portlet)


Name
Type and Description

authorBackgroundColor

javax.jcr.PropertyType.WEAKREFERENCE

 

A sv:color Node that has property htmlHexValue (java.lang.String) - the hexvalue of the color.

bundle

javax.jcr.PropertyType.STRING

 

A Node that contains alla language bundle properties. The actual node can be resolved by calling getNode() on this property

commentFont

javax.jcr.PropertyType.WEAKREFERENCE

 

A Node that has property selectorText (java.lang.String) - the css class name of the font .

comments

javax.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

createCommentURL

javax.jcr.PropertyType.URI

 

A URL to post comments to.

dateFont

javax.jcr.PropertyType.WEAKREFERENCE

 

A Node that has property selectorText (java.lang.String) - the css class name of the font .

enableCaptcha

javax.jcr.PropertyType.BOOLEAN

 

Corresponds to captch antispam setting

errorFont

javax.jcr.PropertyType.WEAKREFERENCE

 

A Node that has property selectorText (java.lang.String) - the css class name of the font .

errorMessages

MultiValue of javax.jcr.PropertyType.STRING

 

The Collection of possible error messages for the posted data

evenBackgroundColor

javax.jcr.PropertyType.WEAKREFERENCE

 

A sv:color Node that has property htmlHexValue (java.lang.String) - the hexvalue of the color

headlineFont

javax.jcr.PropertyType.WEAKREFERENCE

 

A Node that has property selectorText (java.lang.String) - the css class name of the font .

icons

javax.jcr.PropertyType.STRING

 

A Node that has all icon properties. The actual node can be resolved by calling getNode() on this property

informationMessages

MultiValue of javax.jcr.PropertyType.STRING

 

Corresponds to the 'Show number of hits' in the tag cloud configuration

inputFont

javax.jcr.PropertyType.WEAKREFERENCE

 

A Node that has property selectorText (java.lang.String) - the css class name of the font .

labelFont

javax.jcr.PropertyType.WEAKREFERENCE

 

A Node that has property selectorText (java.lang.String) - the css class name of the font .

limitComments

javax.jcr.PropertyType.BOOLEAN

 

Corresponds to the setting to limit amount of comments

limitDays

javax.jcr.PropertyType.BOOLEAN

 

Corresponds to the setting to limit the number of days you can comment

mandatoryFieldColor

javax.jcr.PropertyType.WEAKREFERENCE

 

A sv:color Node that holds the color for the "mandatory input field asterisk" [@since 2.6.2_03]

maxComments

javax.jcr.PropertyType.INTEGER

 

Corresponds to max number of comments setting

maxDays

javax.jcr.PropertyType.INTEGER

 

Corresponds to max number of days setting.

nameFont

javax.jcr.PropertyType.WEAKREFERENCE

 

A Node that has property selectorText (java.lang.String) - the css class name of the font .

oddBackgroundColor

javax.jcr.PropertyType.WEAKREFERENCE

 

A Node that has property htmlHexValue (java.lang.String) - the hexvalue of the color

reverseOrder

javax.jcr.PropertyType.BOOLEAN

 

Corresponds to setting to display comments in reverse order

rssEnabled

javax.jcr.PropertyType.BOOLEAN

 

Corresponds to rss beeing enabled in the portlet configuration.

rssLinkURL

javax.jcr.PropertyType.URI

 

URL for the RSS feed for comments.

toggleClosedURL

javax.jcr.PropertyType.URI

 

URL to toggle the ability to add comments

toggleDisabledURL

javax.jcr.PropertyType.URI

 

URL to toggle hiden/disabled on the module.



The Comments JCR node has a number of sub nodes. It has no properties.

TProperties available for the comment nodes:
NameType and Description

comment

javax.jcr.PropertyType.WEAKREFERENCE

 

The SV.pageComment object

deleteURL

javax.jcr.PropertyType.STRING

 

The URL to delete a specific Comment

hideURL

javax.jcr.PropertyType.STRING

 

The URL to hide a specific comment

showURL

javax.jcr.PropertyType.STRING

 

The URL to show a specific comment



The Bundle JCR node has no sub nodes. It has no properties.

Properties available for Bundle:
NameType and Description

authorComment

javax.jcr.PropertyType.STRING

 

I18n bundle text for Author comment

by

javax.jcr.PropertyType.STRING

 

I18n bundle text for by

comments

javax.jcr.PropertyType.STRING

 

I18n bundle text for Comments

commentsClosed

javax.jcr.PropertyType.STRING

 

I18n bundle text for Comment are closed

commentsDisabled

javax.jcr.PropertyType.STRING

 

I18n bundle text for comments are hidden/disabled

createComment

javax.jcr.PropertyType.STRING

 

I18n bundle text for Create comment

deleteComment

javax.jcr.PropertyType.STRING

 

I18n bundle text for Delete comment

deleteCommentConfirm

javax.jcr.PropertyType.STRING

 

I18n bundle text for Confirm deletion of comment

hiddenComment

javax.jcr.PropertyType.STRING

 

I18n bundle text for Hidden comment

hideComment

javax.jcr.PropertyType.STRING

 

I18n bundle text for Hide comment

mandatoryTooltip

javax.jcr.PropertyType.STRING

 

I18n bundle text for Mandatory tooltip marker

showComment

javax.jcr.PropertyType.STRING

 

I18n bundle text for Show comment

submitComment

javax.jcr.PropertyType.STRING

 

I18n bundle text for Submit comment

toggleClosed

javax.jcr.PropertyType.STRING

 

I18n bundle text for Toggle closed, returns corresponding string according to current status

toggleDisabled

javax.jcr.PropertyType.STRING

 

I18n bundle text for Toggle disabled, returns corresponding string according to current status



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

deleteComment

javax.jcr.PropertyType.WEAKREFERENCE

 

Image for Delete comment icon.

error

javax.jcr.PropertyType.WEAKREFERENCE

 

Image for Error icon.

hideComment

javax.jcr.PropertyType.WEAKREFERENCE

 

Image for the Hide comment icon.

information

javax.jcr.PropertyType.WEAKREFERENCE

 

Image for the Information icon.

rss

javax.jcr.PropertyType.WEAKREFERENCE

 

Image for the Rss icon.

showComment

javax.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

alt

javax.jcr.PropertyType.STRING

 

I18n alt text from icon image.

height

javax.jcr.PropertyType.STRING

 

Height of image icon.

style

javax.jcr.PropertyType.STRING

 

Specific style attributes for image icon.

URL

javax.jcr.PropertyType.URI

 

The url for the image icon.

width

javax.jcr.PropertyType.STRING

 

Width of image icon.