[Potlatch-dev] How to instruct the Potlatch2 API tor read Customized Stylesheets

=?us-ascii?B?UGllcnJlIELpbGFuZA==?= infosbelas-gps at yahoo.fr
Sat Apr 16 20:01:36 BST 2011


Hi all,

I have not found in the documentation how to refer to customized Stylesheets.
Trying to use a customized stylesheet with a Custom Potlatch2, i dont find how
to instruct the API for both the url and the name of the Stylesheet without recompiling the API.

I was expecting that Stylesheets.xml  would be read by the API when a client starts the application.
But adding instructions to the file or even erasing stylesheets.xml file has no impact on names listed in the Style list. 

The instruction fo.addVariable("style","stylesheets/anystyle.css"), gives the ability to add an url, but
name = Custom is automatically applied.

Am i doing something wrong? If not, could the API be modified to read the stylesheets.xml file at startup of the API? 

If stylesheets.xml cannot be read, would it be possible at least to have an instruction like
fo.addVariable("styleName","My Anystyle");

regards,

Pierre Béland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/potlatch-dev/attachments/20110416/0f1533b9/attachment.html>


More information about the Potlatch-dev mailing list