Posted by
Firas A.-2 on
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Users-Root-directory-of-the-templates-tp136548p136552.html
Andrew,
What I meant to say is that path settings in jpublish.xml are seem to be
ignored. I've searched the whole source code (*.java) for reference to
'page-root', 'template-root' or 'action-root' but found none.
I'm pretty sure these settings are hard-coded in
org.ofbiz.webapp.view.JPublishWrapper.JPublishWrapper
and
org.ofbiz.webapp.ftl.FreeMarkerViewHandler
</Firas>
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]]
On Behalf Of Andrew Sykes
Sent: den 22 november 2005 12:39
To: OFBiz Users / Usage Discussion
Subject: RE: [OFBiz] Users - Root directory of the templates
Firas,
I'm not sure what you mean?
Why are the paths non-existent?
Can't you just create them?
Andrew
On Tue, 2005-11-22 at 11:15 +0100, Firas A. wrote:
> 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--
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