Ticket #108 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

[HTML Legend] Support for nested [if] tags

Reported by: dmorissette Owned by: jmckenna@…
Priority: high Milestone:
Component: MapServer C Library Version: 3.6
Severity: normal Keywords:
Cc: mcilhagga@…, jdoyon@…

Description

Nested [if] tags are not supported in the current implementation of the HTML 
legend, but this would be required for some type of legends (requested by Peter 
B.)

This bug is about making the required changes to support nested pairs of tags in 
the HTML template parser.

Change History

Changed 11 years ago by sfournier@…

  • status changed from new to closed
  • resolution set to fixed
Ok, now nested if are supported. You can do something like this:
[if name=unable_checkbox value=1]	
  <input type=checkbox name=layer value=[leg_layer_name] [if name=layer_status
value=1]CHECKED[/if]>
[/if]

IMPORTANT NOTE: Metadata value "unable_checkbox" (in previous example) SHOULD be
 declared in each metadata layers.

Changed 11 years ago by sfournier@…

  • status changed from closed to reopened
  • resolution fixed deleted
Please read "ENABLE_CHECKBOX" and not "UNABLE_CHECKBOX" :)

Please Jeff, update documentation... Thanks

Changed 11 years ago by sfournier@…

  • owner changed from sfournier@… to mckenna@…
  • status changed from reopened to new
Please Jeff, update documentation... Thanks


Changed 11 years ago by dmorissette

Jeff, can you please confirm that documentation has been updated and close the 
bug?

Changed 11 years ago by jmckenna@…

  • status changed from new to closed
  • resolution set to fixed
I have updated the docs to note that nested if's are supported, and I've tested 
this somewhat.  Closing bug.

Note: See TracTickets for help on using tickets.