Share » Forums » Setup & design » Board member voting

Board member voting

Board member voting

Friday 20 February 2004 4:42:09 am - 1 reply

Modified on Friday 20 February 2004 4:47:26 am by Tore Skobba

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu