[ZPT] dynamic table

José Henrique jhreis at gmail.com
Tue Feb 6 11:57:38 EST 2007

Try this way:

Reformat getColumnName() > =>['id','title','address']
Reformat  getColumnData =>[(1, 'vincent   ', 1233), (2,'nicolas   ', 2222),
(3,'nani      ',3333),(4, 'roby      ',4444)]

Test with this:

<tr bgcolor="#ece9d8">
    <th tal:repeat="col_name context/getColumnName">
        <span tal:replace="col_name" />
        <input type="checkbox" id="selectedColumn" />

<tal:loop repeat="line_data context/getColumnData">
        <td tal:repeat="col_data line_data"
            tal:content="col_data" />

José Henrique.

2007/2/5, Graziella Toutoungis <graztoutoungis at yahoo.fr>:
> Hello,
> I want to create a page template who provide a dynamic table,
> in the first step my user can choose his table from a list (the first page
> template) when he validates his choice he can see another page template
> whith his table.
> in the second step he can create his own table by selecting the rows and
> columns.

More information about the ZPT mailing list