Forums / Setup & design / Board member voting

Board member voting

Author Message

Tore Skobba

Friday 20 February 2004 4:42:09 am

Hi

In my site I have a need to have support for voting for boardmembers and various roles. For example:
Candidates______President Vice-Presiden Boardmember
Lotriam pura______[ ] [ ] [ ]
Tyurim____________[ ] [ ] [ ]
Porma_____________[ ] [ ] [ ]
etc

For each Candidates the user should select one of the roles (Presiden, Vice President and Boardmember). First I though about using "Option" for each candidate. However, there is a need to have a dynamic number of candidates. Do anyone here have any tips on how to implemnt such functionality with EZ ? Secondly note that each candidate should be an URL, i.e. clicking the name should lead the user to his appeal on the web.

I am not looking for specific code, more tips about how to start solve this. Which existing EZ attribute should I use etc. ?

Cheers
Tore

James Packham

Friday 20 February 2004 5:47:11 am

You could create a class that holds all the relevant information for a candiate (including for example their statement), so that each of the candiates can be represented by an object in the database. You can then add/remove candiates as necessary.

Then you could then build the list of candiates using a fetch statement in your template. You could then have a full.tpl override for each candidate that displayed everything you wanted to appear on their statement page.

To build the link between the two would be fairly simple, you would be able to find out the object variables needed for the link by doing an attribute show on a candidate.

There's also an example of a voting system in the blog siteaccess which should help you with some of the code.

Regards,

James