poll:use
Creates a poll (Mentometer
bean)
and makes it available in the body of this tag. It can be accessed
within the body of the tag via the name specified with the
id
attribute. The Mentometer
bean is based on the current content item. You can,
however, reset the current content item within the body of the tag by
setting one of the following attributes or attribute
combinations:
-
article
-
articleId
-
name
-
name
andproperty
-
source
andsourceId
Syntax
<poll:use article="..."? articleId="..."? id="..." name="..."? property="..."? source="..."? sourceId="..."?> ... </poll:use>
Attributes
id
, mandatory, no runtime expressionsName of the
Mentometer
(poll) bean created.article
The content item to be set as current content item in the body of this tag. The supplied bean must either be a
neo.xredsys.api.Article
or aneo.xredsys.presentation.PresentationArticle
bean.Using this attribute excludes the use of the attributes
articleId
,name
/property
andsource
/sourceId
.articleId
An article id identifying the content item to be set as current content item in the body of this tag. This content item will be loaded from the current publication. The value supplied can be an
int
,Integer
orString
.Using this attribute excludes the use of the attributes
article
,name
/property
andsource
/sourceId
.name
The name (key) of either:
Using this attribute excludes the use of the attributes
article
,articleId
andsource
/sourceId
.property
The name of a bean property. This attribute is used together with the
name
attribute to locate a content item that will be used as current content item in the body of this tag.This attribute cannot be used without the
name
attribute. Using this attribute excludes the use of the attributesarticle
,articleId
andsource
/sourceId
.source
The source of a content item to be used as current content item in the body of this tag.
This attribute must be used together with
sourceId
. Using this attribute excludes the use of the attributesarticle
,articleId
andname
/property
.sourceId
The source ID of a content item to be used as current content item in the body of this tag.
This attribute must be used together with
source
. Using this attribute excludes the use of the attributesarticle
,articleId
andname
/property
.