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
|