Using the "in" tag's grouping capability, is there any way to get the count of items in that group? I need this so I can have a table with one row per item and a cell rowspanned for all the group's items (eg: related products and their picture). --- Julian Morrison Programmer (Zereau Ltd)
At 14:01 03/03/99 , julian@zereau.net wrote:
Using the "in" tag's grouping capability, is there any way to get the count of items in that group? I need this so I can have a table with one row per item and a cell rowspanned for all the group's items (eg: related products and their picture).
No, there isn't. You will have to use the SQL statement, to add a calculated value column to it's output. You should be able to use COUNT to achieve this. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
julian@zereau.net wrote:
Using the "in" tag's grouping capability, is there any way to get the count of items in that group? I need this so I can have a table with one row per item and a cell rowspanned for all the group's items (eg: related products and their picture).
Rather than using rowspan, use nested tables. I haven't done this in Zope yet, but it was always my solution of choice in ColdFusion. It also makes it easier to debug your layout in a WYSIWYG editor. It does, of course, bloat your HTML a bit. Michael Bernstein.
On 03-Mar-99 Michael Bernstein wrote:
julian@zereau.net wrote:
Using the "in" tag's grouping capability, is there any way to get the count of items in that group? I need this so I can have a table with one row per item and a cell rowspanned for all the group's items (eg: related products and their picture).
Rather than using rowspan, use nested tables. I haven't done this in Zope yet, but it was always my solution of choice in ColdFusion. It also makes it easier to debug your layout in a WYSIWYG editor. It does, of course, bloat your HTML a bit.
It will work, and I'm going to have to in the short term, but I really would like the multiple columns for each item to line up down the page, without ugly fixed-width hacks. --- Julian Morrison Programmer (Zereau Ltd)
participants (3)
-
julian@zereau.net -
Martijn Pieters -
Michael Bernstein