[Chameleon] Understanding queryresults.phtml

Tyler Mitchell tjm at timberline.ca
Thu Apr 7 14:52:49 EDT 2005


> With Respect to the CustomizedQueryResults - the executeQuery() function 
> will perform a query on all layers in the mapfile which are marked as 
> queryable (ie, TEMPLATE "<value>").  If you remove the TEMPLATE 
> directive I believe Chameleon will not query that layer.
> 
> If you wanted to ignore the results AFTER a query has been performed 
> then the metadata approach should work ... at what point are you doing 
> the -- if ($olayer->getMetadata( "query_ignore" ) != "") -- ?

I had put that code in line 262.  I really want to remove the reliance 
on TEMPLATE being set, and start to manage things using METADATA 
instead.  Next I will try to do the same thing when printing  the 
attribute values, but I thought I'd get comfy at the layer/class level 
first.

Tyler


More information about the Chameleon mailing list