Hi Matteo, [quote]the "resources" page quite outdated. documentation says that /.resources is a way of telling Magnolia to load resources from classpath. I tested it and it does not work. It loads instead resources from /mgnl-resources folder of my Jar module.[/quote]
The Resources page is long due an update. What's more, the whole discussion about classpath on that page is misleading. The classpath, as the name suggests, is for loading classes. Resources are loaded from the "resource path" using the /.resources pattern. I confirm your point B that Magnolia doesn't load resources from the classpath. It loads from /mgnl-resources in your module JAR. Note that with this approach resources are not extracted on the file system but served from inside module JAR. The downside is that you can't them easily. If you need editability, try bootstrapping such resources from /mgnl-docroot to <context path>/docroot. --Antti -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=5b454e97-5afe-487a-a14a-0fce29c82997 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
