Hi Carsten: Are you referring to ElectronicText.textData?
Usually content - like email body values - is either in an ElectronicText.textData record pointed to by a DataResource.dataResourceId and/or Content.dataResourceId or in a disk file somewhere and the DataResource.dataResourceId points to that location.
To get the content and have Freemarker render it (and not just put up literal values), you can use something like:
<#assign renderedContent = StringUtil.wrapString(blog.textData) /> Where blog was placed into the context via a Groovy data prep script. Is that what you are looking for? Regards, Ruth On 3/25/11 12:27 PM, Carsten Schinzer wrote:
All, I am trying to customize the E-Mails and PDFs generated by OFBiz to contain managed content (like e.g. an opening text addressing the user and explaning the terms of the offer / order etc. or a closing remark including a greeting and a signature). I see that most of these contents -- especially the Formatting Object ones -- are handled and created using FTL parts. How would I thus reference a piece of managed content? Do I need to load it using a groovy script? Does anyone know a place where this is already done in the OFBiz framework? Any hint would be greatly appreciated. Thanks a lot in advance. Cheers Carsten
