|
Posted by Monte Ohrt on 06/02/05 16:29
You can make a modifier to do that, but the parameter syntax will need
to follow the rules, something like:
{p}
{p h=10 w=5}
You could also write a prefilter that will change this:
{p:10:5}
to this:
{p h=10 w=5}
Then you could get the brevity you are after.
As for writing the modifier, there are instructions and examples in the
documentation. Feel free to post here or on the forum if you have trouble.
Monte
Matija Rijavec @ domenca.si wrote:
> Hi all.
>
> In my templates, i use a lot of <img src="pixel.gif" height="1"
> wifth="1"> ......
> How can i make modifier / plugin for this ... like :
> {p} .... ordinary pixel.gif wiht widtht=1 and height=1 -- default values
> {p:10:5} .... pixel.gif with width=10 and height=5
>
> ... sorry if this isnt maillist for plugins/...
>
> Greetz.
Navigation:
[Reply to this message]
|