[Cartoweb-users] Tooltips template
Sylvain Beorchia
sylvain.beorchia at makina-corpus.com
Tue May 15 03:02:07 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I come again with my tooltips problems:
In my tooltips.ini, i've got :
timeout_async.ecm_poly.template = "layerResult_poly.tpl"
In the renderResult() function (LayerResult.php), i checked that
$template contains the good value (layerResult_poly.tpl), and it does.
$template = $this->getCustomTemplate();
But anyway, the layerResult_poly.tpl template is not apply at all.
I tried to add some debug informations in the Smarty.class.php::fetch
function. I can see the layerResult_poly.tpl as a parameter, but just
after that, i see results.tpl coming. And in fact, if i change the
results.tpl, i've got some change in my tooltips.
Last thing, this is for example the content of results.tpl :
{foreach key=attributeName item=attributeValue from=$layerResults}
<b>{t}{$attributeName|capitalize}{/t} : </b>
{if $attributeName=='numero'}
<font color='#00AA00'>{t}{$attributeValue}{/t}</font></a><br>
{else}
{t}{$attributeValue}{/t}<br>
{/if}
{/foreach}
But it does not do anything.
Any ideas ?
Thank you.
Sylvain Beorchia.
Makina Corpus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGSVrvit+Ro3cR7XYRAmVhAKC1PyEW/MmkEjJ2FfEFZOCNVb8KJACgqAdr
y7C67PfSLDHDkbioMz7M8zw=
=5y9+
-----END PGP SIGNATURE-----
More information about the Cartoweb-users
mailing list