here is exactly my plugin skeleton, compiled as a jar in the
nxserver/plugins folder :

myPlugin
-pom.xml
-src/main/java
---fr.domain.nuxeo
-----MyApp.java      (class which extends Application, entry
point I think)
-----Index.java      (define the different path and return
ftl template, see code in the first post)
-----AutomationClient.java      (in which methods retrieve
some documents and infos in the repository)
-src/main/resources
---fr.domain.nuxeo
-----index.ftl         (list the the retrieved document
returned by AutomationClient)
-----document.ftl  (show details about one document)
---META-INF
-----MANIFEST.MF
---OSGI-INF
-----deployment-fragment.xml
---schemas
---web
-----nuxeo.war
+ empty test packages

My questions are :

1) Where should I put css/images/js used in my ftl files ? 
I tried in the same package of ftl files, I tried in
nuxeo.war. I can't reach them.

2) With which path can I get them from the ftl files?
Of course it depends on the place they are stored, but I
don't know if it's possible to get access in the jar from
the ftl. Is the jar deployed somewhere at Nuxeo startup?

help please!
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to