| Abdul-Wahid Paterson 2005-01-10, 4:01 pm |
| This is nearly what I want in that it works. The only problem is that
my $array is actually an array of of arrays with each sub-array having
several different elements which have certain rules as to which should
be displayed (and how to be displayed depending on the theme). e.g. an
image, link, comment, description. Using the html_table method I would
have to have separate PHP functions for each "theme" using my site
code.
Any other ideas?
Abdul-Wahid
On Mon, 10 Jan 2005 18:10:19 +0300, messju mohr
<messju@lammfellpuschen.de> wrote:
> On Mon, Jan 10, 2005 at 02:40:28PM +0000, Abdul-Wahid Paterson wrote:
>
> if your array is one dimensional and sorted alphabetically, then this:
>
> {html_table inner=rows cols=3 loop=$array}
>
> should give the result you desire. "inner=rows" means: "put
> neighbouring values in the array into neighbouring rows in the
> table". the default is 'inner="cols"' and gives your second examples
> (the not desired one) as output.
>
> HTH
> messju
>
>
|