look at the FTl's in ofbiz.
Plus they can be defined in widgets.
groovy code in the action folder are used to marshal data the send the
parameters to the ftl.
so no java are needed to be included in the flts
if you use the widgets you can put groovy code n the widget and then
call the ftl.
there are many examples.
The problem as I see it is that the ftls from the CMS will not bee aware
of the parameters passed by ofbiz and/or groovy scripts.
madppiper sent the following on 11/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());
>