Forum OpenACS Development: template::list and grid

Collapse
Posted by Matthew Burke on
I have a list of data that I would like to display in a two-column format.  I can do this with <grid> but I like template::list.  Has anyone hacked lists to do this.

Can anyone who is more familiar with the code (i.e. almost everyone) tell me what it's not worth ripping my hair out to do and just use the <grid> tag?

Thanks,

Matt

Collapse
Posted by Andrei Popov on
Take a look at logger or bug-tracker to see how template::list is used.  You won't loose much hair, don't worry.
Collapse
Posted by Matthew Burke on

Andrei,

Thanks for the response. I think I wasn't clear in my previous posting. I do know how to use template::list (more or less). What I don't know how to do is get more than one database row per line on the screen. Here's what I have using template::list:

User      Joined

aaa       10-Mar
aab       3-Feb
.......
100 more lines of data
.......
zzz       11-Jan
What I would like to have is the following:

User       Joined      User    Joined

aaa         10-Mar      mma       11-Dec
aab         3-Feb       qrs       9-Aug
 ............           zzz       11-Jan
 more lines
 ...........
lhz         2-Sep

I might've overlooked something but haven't found any examples of using template::list this way in the oacs codebase.

Collapse
Posted by Jade Rubick on
Read my list-builder docs at http://rubick.com:8002/openacs

There's an example. You use the <group> tag inside a display_template. It's not perfect, but it can work.