Using Page Templates to display data from a database
I'm trying to use Page Templates to pull data from a relational database and display it in table form. Can anyone help me?
on or about, Friday, August 30, 2002, we have reason to believe that James White wrote something along the lines of : JW> I'm trying to use Page Templates to pull data from a relational database JW> and display it in table form. Can anyone help me? use a Zsql-method to get the database-results: SELECT field1, field2 FROM exampletable then use something like the following in your pagetamplate to display it: <table> <tr tal:repeat="rows here/nameOfYourZsqlMethod"> <td tal:content="rows/field1" /> <td tal:content="rows/field2" /> </tr> </table> also see : http://www.zope.org/Documentation/Books/ZopeBook/current/RelationalDatabases... for more thorough information -- Geir Bækholt Web Developer geir@funcom.com Product Operations Funcom Oslo
participants (2)
-
Geir B�kholt -
James White