[opencms-dev] Opencms & Velocity...
Dan Liliedahl
dliliedahl at efoundry.com
Mon Mar 6 19:08:38 CET 2006
Ashok,
Please use this configuration file to fix the problem.
Cheers,
Dan
resource.loader=file,opencms
file.resource.loader.class=org.apache.velocity.runtime.resource.loader.FileR
esourceLoader
file.resource.loader.path=webapps/opencms
opencms.resource.loader.class=com.efoundry.velocity.loaders.CmsVelocityResou
rceLoader
velocimacro.library=/WEB-INF/VM_global_library.vm
velocimacro.permissions.allow.inline=true
velocimacro.permissions.allow.inline.to.replace.global=false
velocimacro.permissions.allow.inline.local.scope=false
velocimacro.context.localscope=false
template.encoding = UTF-8
input.encoding=UTF-8
output.encoding=UTF-8
_____
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Ashok Hariharan
Sent: Friday, March 03, 2006 7:02 AM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Opencms & Velocity...
Hello Dan:
I am in fact using your module :) Everything works fine, except when i try
to #parse () or #include () a file,
for some reasont it fails to include files from within the vfs....(i am able
to access other opencms objects and functions
through velocity).
any ideas/pointers...where i could have gone wrong?
thanks
Ashok
On 2/24/06, Dan Liliedahl <dliliedahl at efoundry.com
<mailto:dliliedahl at efoundry.com> > wrote:
There has already been posted a module for this solution. I posted this a
little while back - do a search for it and you will find the code and
module. Works fine in the scenario you described.
Cheers,
Dan Liliedahl
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org ] On Behalf Of Ashok Hariharan
Sent: Friday, February 24, 2006 10:07 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] Opencms & Velocity...
Hi:
I am trying to use Jakarta Velocity within Opencms. Everything seems
to work, but I cant to seem to get #include() or #parse() from within
a velocity script to work.....
I have tried prefixing "opencms://<path>" and without the prefix...but
Velocity still cannot seem to include files from within the VFS.
Error message as below...
<error message>
Unable to find resource 'opencms://sites/default/test_include.vm'
org.apache.velocity.exception.ResourceNotFoundException : Unable to
find resource 'opencms://sites/default/include.vm' at
.........
</error message>
The velocity documentation talks about setting a TEMPLATE_ROOT...but
am not sure if that is the problem. Has someone experienced the same
problem?
thanks
Ashok
--
++++ Ashok Hariharan ++++
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
--
++++ Ashok Hariharan ++++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060306/1ebf9b55/attachment.htm>
More information about the opencms-dev
mailing list