[Cartoweb-dev] smarty

Alexandre Saunier alexandre.saunier at camptocamp.com
Wed Jul 6 11:12:02 EDT 2005


Hello,

it depends on what you plan to do in your new template!

If it only contains layout stuff or quite simple processing that Smarty 
can handle (strings translations with the custom {t} tags, etc.) simply 
include it in toolbar.tpl as follows:
{include file="xxx.tpl"}

If you want to assign some data from PHP, it is more complicated (and 
even not recommended) since you'll have to modify the upstream file 
client/FormRenderer.php.
toolbar.tpl is indeed an included template in cartoclient.tpl, the 
latter being handled by FormRenderer::showForm()

Hope this helps,

Alex

Laurent PIERRE a écrit :
> Bonjour,
> 
> J'ai rajouté un template dans cartoweb (i.e. un fichier xxx.tpl appelé 
> par toolbar.tpl) et je voudrais qu'il soit traité en même temps par 
> smarty ... comment fait-on ?
> 
> Merci
> 
> Laurent Pierre
> EDF R&D
> _______________________________________________
> Cartoweb-dev mailing list
> Cartoweb-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-dev


More information about the Cartoweb-dev mailing list