Giorgo,

to adapt a query result table (making links clickable, adding images...) depending on the layer, you'd better use CartoWeb built-in "tableRules" system.

You will have to write a small plugin.

Things are described here :
http://cartoweb.org/doc_head/docbook/xhtml/dev.newplugin.html#dev.newplugin.special.tables

There are also some examples in CartoWeb you may have a look to:
- if you use CW3.2.0:
cartoweb3/projects/test_main/plugins/testMainTableRules/client/ClientTestMainTableRules.php

- if you use CW3.1.0:
cartoweb3/projects/test_project/plugins/projectTableRules/client/ClientProjectTableRules.php

AS

Giorgio Plazzotta wrote:
thanx alexander
using smarty is not really a very easy task for me but i will try
can u please give a tip about where to change if i want to obtain a different report as the result of the query tool? imagine that for all the layes i want to keep the actual table reporting module but for a special layer i want to have a different report (ex. with image tags or web linnks), what could i do?

Giorgio






----- Original Message ----- From: "Alexandre Saunier" <[EMAIL PROTECTED]>
To: "Giorgio Plazzotta" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Tuesday, February 21, 2006 10:21 AM
Subject: Re: [Cartoweb-users] Templates


Hello,

CartoWeb uses one of the best known template system for PHP, Smarty. There are a lot of tutorials and examples available on the web. A good start is the Smarty website (http://smarty.php.net/) that even includes an italian manual (http://smarty.php.net/manual/it/).

Concerning CartoWeb templates examples, you may have a look at the various sets of templates available in the root templates/ directory and in built-in projects (demoCW3, demoPlugins, basic, ...). Most of the layout is processed in the file cartoclient.tpl.

AS

Giorgio Plazzotta wrote:

Hi all,
before starting to examinate the templating environment (not very easy I should say) and a way to modify the identify template in order to show pictures and weblinks. I wonder if it's possible to increase the number of samples at disposal, and particularly if other users can share their own modified templates.

thanx
Giorgio




_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to