Re: [SMARTY] Some Filters / How to make a Plugin, filters part of the standard distribution
| From: | Monte Ohrt | Date: | Wed, 19 Feb 2003 16:50:28 +0000 |
| Subject: | Re: [SMARTY] Some Filters / How to make a Plugin, filters part of the standard distribution | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7903@lists.php.net to get a copy of this message | ||
I'd like to have a plugin that creates an html table from an array of
data. Peter Bowyer has a good start but it is reliant on PEAR libraries
and it has an obfuscated way of cycling table rows:
http://www.mapledesign.co.uk/coding/smarty_table.php
I started on one that works OK, but doesn't have features in it yet like
caption/header tags.
I'll go ahead and commit what I have done to CVS, maybe someone has time
to expand it :-)
examples:
{html_table loop=$data cols=4}
{html_table loop=$data cols=4 tr_attr=$colors}
It will cycle though the array $colors for the TR attributes.
Monte
On Wed, 2003-02-19 at 10:45, Laurent Penou wrote:
> Hi Joscha
>
> Might be usefull tu add your filters on the Wiky
> Plugin pages http://smarty.incutio.com/?page=SmartyPlugins
> Filters page http://smarty.incutio.com/?page=SmartyFilters
>
> Hi Monte,
> What will make a nice plugin submited to be part of the standard
> distribution ?
>
> Regards
> Laurent
>
> ----- Original Message -----
> From: "Joscha Feth" <joscha@feth.com>
> >
> > Hi (again),
> >
> > Some filters (I didn't know where to send them):
> >
> > - block.center - centers the content of the block vertically and
> > horizontally
> > - output.gzip - filter for output compression capablities with Smarty
> >
> > http://dev.feth.com/PHP/Smarty/
> >
> > Enjoy :)
> >
> > Greets,
> > Joscha
> >
> >
> >
> > --
> > Smarty General Mailing List (http://smarty.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
--
Monte Ohrt <monte@ispi.net>