If the CMS classes are in the OFBiz classpath, then you can add transforms to 
the framework/webapp/config/applicationTransforms.properties file and OFBiz 
will load them automatically.

-Adrian


--- On Thu, 11/6/08, madppiper <[EMAIL PROTECTED]> wrote:

> From: madppiper <[EMAIL PROTECTED]>
> Subject: FreemarkerWorker Expression definition
> To: [email protected]
> Date: Thursday, November 6, 2008, 3:55 AM
> I am trying to integrate a different cms to ofbiz, which
> also runs on
> freemarker files. The basic idea is to share the different
> ftls (at least
> the ones generated by the cms). I could setup the cms
> (magnolia) just fine
> and I could easily access the magnolia ftl files just fine
> from within
> ofbiz. However, of course, Ofbiz does not read the
> freemarker expressions as
> i hoped it would (up to that point i did not realize that
> freemarker
> expressions need to be defined within java classes prior
> usage) and I ended
> up receiving errors in return.
> 
> So much for the background... now: I was thinking that
> since I do have
> access to the cms and I could easily access the included
> java files,
> wouldn't it be possible to initiate the java classes
> from within the
> FreemarkerWorker.java file and add the needed expressions
> to the very same?
> 
> 
> 
> 
> If I do understand the matter correctly, expressions are
> added by the
> following statement from within FreemarkerWorker:
> 
>   ftlTransforms.put("ofbizUrl",
> loader.loadClass("org.ofbiz.webapp.ftl.OfbizUrlTransform").newInstance());
>  
> -- 
> View this message in context:
> http://www.nabble.com/FreemarkerWorker-Expression-definition-tp20359714p20359714.html
> Sent from the OFBiz - User mailing list archive at
> Nabble.com.


      

Reply via email to