Hi Dan,

Thanks for asking! Resource loading got a significant upgrade in Magnolia 5.4 
so it's worth walking through an example.

Your question is about the Form module. The Freemarker templates are inside the 
Form module JAR file. The JAR is one of three possible resource loading origins 
in Magnolia: 1) JCR resources workspace, 2) file system, 3) classpath JARs. The 
path /form/components/form.ftl is indeed inside the JAR file.

In Magnolia 5.4.3+ you can use the Resource Files app to view the template 
script. This app shows files from any origin. Go to Web Dev > Resource Files > 
/form/components/form.ftl to find the particular file you asked about. The 
Origin column in the app shows that the file comes from the classpath.

If you edit the file in the Resource Files app, Magnolia creates a 
corresponding file in the JCR resources workspace which overrides the classpath 
file. This is a great way to hot fix templates. Alternatively, create the 
corresponding file on your file system which again overrides the classpath 
file. Working on resources on the file system is part of the new light 
development approach. If you're not on 5.4 yet consider an upgrade. You might 
quite like it.

Some docs:
* Resources https://documentation.magnolia-cms.com/display/DOCS/Resources
* Unified resource loading in Magnolia 5.4 
https://documentation.magnolia-cms.com/display/DOCS/Release+notes+for+Magnolia+5.4#ReleasenotesforMagnolia5.4-Unifiedresourceloading
* Resource Files app in Magnolia 5.4.3 
https://documentation.magnolia-cms.com/display/DOCS/Resources#Resources-ResourceFilesapp
* Light development 
https://documentation.magnolia-cms.com/display/DOCS/Light+development+in+Magnolia

--Antti

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=a6e63723-176a-4043-a714-61b5b37e03ab


----------------------------------------------------------------
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: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to