[Templates] Table plug in

2008-08-28 Thread Kelly Thompson
I am pretty new to TT and attempting to create a dynamic table with the "Table" plug in to display the results of a database query. I send the result set to the template as an array reference called "news", then I would like to display the news articles in a table with 4 cols, and however many row

Re: [Templates] Table plug in

2008-08-28 Thread Josh Rosenbaum
Kelly Thompson wrote: > However, I am having trouble due to the need for closing and > opening tags. > > Here's what I have: > > > > > [% USE table news, cols = 4 %] > > [% FOREACH row IN table.row %] > > [% FOREACH cell IN row %] > > > > [% cell.title %] > [% cell.content %]

Re: [Templates] Table plug in

2008-08-28 Thread Kelly Thompson
Thanks Josh!! I made those changes and it is more adherent to standards. Now I just need to figure out how to arrange the data across. It is still going down ie: 1 4 7 2 5 8 3 6 9 Also still having the problem with a result set of 9, if it's any other number it works fine but with a "news.size"

Re: [Templates] Table plug in

2008-08-28 Thread Josh Rosenbaum
Kelly Thompson wrote: > Thanks Josh!! > I made those changes and it is more adherent to standards. > > Now I just need to figure out how to arrange the data across. > > It is still going down ie: > > 1 4 7 > 2 5 8 > 3 6 9 > > Also still having the problem with a result set of 9, if it's any oth

Re: [Templates] Table plug in

2008-08-28 Thread Kelly Thompson
EXCELLENT!! Thanks again Josh. It works fine now, I had thought of that but was afraid it would put the 's at the end of each "column" instead of row. But it doesn't, it works perfect...(somehow) Anyway..once again appreciate ya! On Thu, Aug 28, 2008 at 1:42 PM, Josh Rosenbaum <[EMAIL PROTECT