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 and property

  • source and sourceId

Syntax
<poll:use
   article="..."?
   articleId="..."?
   id="..."
   name="..."?
   property="..."?
   source="..."?
   sourceId="..."?>
   ...
</poll:use>
Attributes
id, mandatory, no runtime expressions

Name 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 a neo.xredsys.presentation.PresentationArticle bean.

Using this attribute excludes the use of the attributes articleId, name/property and source/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 or String.

Using this attribute excludes the use of the attributes article, name/property and source/sourceId.

name

The name (key) of either:

Using this attribute excludes the use of the attributes article, articleId and source/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 attributes article, articleId and source/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 attributes article, articleId and name/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 attributes article, articleId and name/property.