RE: [OFBiz] Users - Root directory of the templates

Posted by Firas A.-2 on
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Users-Root-directory-of-the-templates-tp136548p136550.html

Andrew, Mike

Unfortunately this wasn't it. First, those settings (except action-root)
point to non-existing paths.

Second, the "template root directory" is set programmatically in
org.ofbiz.webapp.ftl.FreeMarkerViewHandler.init(), like this:
config.setDirectoryForTemplateLoading(new File(context.getRealPath("/")))

Which means the path (in ecommerce) is:
${OFBIZ_HOME}/applications/ecommerce/webapp/ecommerce

Any other thoughts?

</Firas>

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
On Behalf Of Mike Baschky
Sent: den 21 november 2005 17:14
To: OFBiz Users / Usage Discussion
Subject: RE: [OFBiz] Users - Root directory of the templates

Firas,
        I believe Andrew is correct on this if you look in your jpublish.xml
file for your app you will see the following lines:

    <!-- Define the root paths for pages/actions/templates -->
    <page-root>WEB-INF/pagedefs</page-root>
    <template-root>templates</template-root>
    <action-root>WEB-INF/actions</action-root>

Mike
 

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Andrew Sykes
Sent: Monday, November 21, 2005 9:52 AM
To: OFBiz Users / Usage Discussion
Subject: Re: [OFBiz] Users - Root directory of the templates

Firas,

I'm not sure about this, but until someone can answer definitively, I think
this is set in the jpublish.xml file.

Kind Regards
--
Andrew Sykes <[hidden email]> Sykes Development Ltd

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users