This article covers a Bloomreach Experience Manager version 13. There's anupdated 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 theChannel Editor componentcatalog, if you want to provide the webmaster with a fixed website layout.
You have to do this using the CMS Console. Navigate to/hst:[your project]/hst:configurations/[your project]/hst:pages and build a potentially nested structure ofhst:components representing your desired page layout. Use inheritance by means of thehst: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, ororg.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, orpoll.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. Seehere 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. |