Objective-Earth / product-design

Apache License 2.0
5 stars 1 forks source link

Polling with AjaxPoll Extension #82

Open p-mohan opened 2 years ago

p-mohan commented 2 years ago

Here the requirement is to allow registered users to vote for a problem or a solution. Therefore a poll needs to be created for each problem and solution. I have decided to use AjaxPoll Extension with some modifications to achieve the goal. The specific modification pertains to how a poll id is passed to the database.

It is now possible to embed the poll in a template and pass the pageid to the extension. This will cause the poll id to match the pageid distinguishing between different polls. The forked code can be found in this branch. See the readme for more information.