view artifacts/doc/howto_wmsartifact.txt @ 6399:10fe6758dfb0

Datacage: Introduced <dc:container-context>. It is an analogon to <dc:context> to fetch the data from a collection. Usage: <dc:container-context container="myContainer"> <dc:properties> <dc:property name="a"/> <dc:property name="b" alias="c"/> </dc:properties> <dc:for-each><!-- as usual --></dc:for-each> </dc:container-context> Iterates over the collection stored on stack with the name 'myContainer' and fetched for each item via getA() and getB() the values to be stored under 'a' and 'c'. dc:has-result() & Co work as expected.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 21 Jun 2013 20:02:15 +0200
parents 5aa05a7a34b7
children
line wrap: on
line source
Howto add a wmsartifact for the maps:

- Add artifact similar to the existing ones in:
    flys-artifacts/src/main/java/de/intevation/flys/artifacts/
- Define facet name in:
    flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java
- Modify datacage configuration (there is documentation in flys-artifacts/doc):
    flys-artifacts/doc/conf/meta-data.xml
- Define the Factory used in the datacage configuration in:
    flys-artifacts/doc/conf/conf.xml
- Define the facet for the Map:
    flys-artifacts/doc/conf/artifacts/map.xml
- You might also want to add it to the floodmap in winfo:
    flys-artifacts/doc/conf/artifacts/winfo.xml
- Add translations for the datacage elements in:
    flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java
- English localization:
    flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties
- German localization:
    flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties

You might also want a theme:
- Add a mapping from your Facet to the theme in:
    flys-artifacts/doc/conf/themes.xml
- Define the theme in:
    flys-artifacts/doc/conf/themes/default/floodmap.xml
    flys-artifacts/doc/conf/themes/second/floodmap.xml

http://dive4elements.wald.intevation.org