Reply to Re: [SMARTY] Smarty plugin / modifier

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация