This article covers a Bloomreach Experience Manager version 12. There's an updated version available that covers our most recent release.

Poll Plugin Developer Guide - Component Instantiation

Instantiate a Poll Component

You should instantiate a poll component, rather than using the Channel Editor component catalog, if you want to provide the webmaster with a fixed website layout.

You have to do this using the CMS Console. Navigate to /hst:hst/hst:configurations/[your project]/hst:pages and build a potentially nested structure of hst:components representing your desired page layout. Use inheritance by means of the hst:referencecomponent attribute where appropriate. Your poll component will be referred to by a leaf-component of this structure.

Setup the following attributes for the component representing the poll:

Attribute Value
hst:componentclassname The class name of your custom poll component, or org.onehippo.forge.poll.component.PollComponent if you use the default component provided by the plug-in.
hst:template The name of the rendering template you just created, or poll.component.ftl if you want to use the default rendering provided by the plug-in.
hst:parameternames This is a multi-value attribute, representing the component's parameter names. See here for a description of the poll component's parameters.
hst:parametervalues This is a multi-value attribute, representing the component's parameter values. The ordering of the parameter values must match the ordering of the parameter names.

 

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?