Dennis Jan, templates are not processed in p.mapper. It would have needed another restructuring of the query code (applying the query on every single layer instead of the map as a whole). And I do not use templates any more. One reason changing from CGI to Mapscript was the complicated maintenance of templates for every layer in every application.
I don't understand why mapserver needs templates for joins, the joins are defined separately from templates. Have you evaluated the possibility to use shapefiles via OGR-based layers? I think that OGR layers support definition of joins, even with the joined fields available for class definitions and so on. armin DJ Broerse wrote: > Hi Armin > > I have another question about joins :( > > So far I understand Mapserver requires a template in the class object > (another template in the join object if you uses a one-to-many join) > See the demo layer of the mapserver tutorial below. > Now I am wondering How does Pmapper handle this, ignores pmapper the > templates or what does pmapper with it? > I hope you can give me some information about that. > > Btw the new features are now in testphase by the local Dutch government > and after that they are ready to contribute to you. > > Greetings, > > Dennis-Jan > > LAYER # Urban areas polygon layer begins here > NAME cities_poly > GROUP cities > TYPE Polygon > STATUS on > DATA urban_ugl > > # The HEADER and FOOTER keywords within a layer object is used to define > the > # header and footer templates for the TEMPLATE keyword used in the CLASS > # object. Uncomment the two lines below and look at the template files > # themselves to see how they work. > HEADER '../templates/cities_header.html' > FOOTER '../templates/cities_footer.html' > > # The keyword TOLERANCE provides a measure of sensitivity for point-based > # queries. In this example, a mouse-click will have a radius of 3 pixels. > # TOLERANCE has an associated keyword, TOLERANCEUNITS. When > TOLERANCEUNITS > # isn't defined, MapServer assumes the units to be pixels. > TOLERANCE 3 > CLASS > NAME 'Urban Areas' > > # The TEMPLATE keyword within a CLASS object is used to define the > # HTML query template to use in displaying database records when the > # query or nquery mode in MapServer is invoked. > TEMPLATE '../templates/cities_query.html' > > STYLE > COLOR 255 240 115 > END > END # CLASS > > PROJECTION > "init=epsg:4326" > END > END # Urban areas polygon layer ends here >
