David,
thanks for the insight, it really helps me; please see my comments inline:
David E Jones wrote:
I believe a few descriptions of the CompDoc stuff were sent out to the
mailing lists as they were developed and contributed. A search of that
should get you some quick results.
Thanks, I will do some researches.
Unless you're seeing something I'm not aware of a Template is just a
template.
So, the definition of a "template" is a Content entry of type
"TEMPLATE"; is this correct? This means that in the "Find Layout" and
"List Layout" screens (not sure about the difference between them)
should only show the Content entries of type = TEMPLATE.
The Layout editor thing is meant to edit a template Content
whose dataResourceId points to the template text (in FTL) and then uses
ContentAssoc records to tie it to things that will be inserted in
different parts of the template. So, a given template can be used for
multiple layouts, each with it's own content inserted in the different
places.
Are the demo data in
http://svn.apache.org/repos/asf/incubator/ofbiz/trunk/applications/content/data/TemplateData.xml
a good example of how templates should be setup?
I cannot see in it any content of "TEMPLATE" type, nor any ContentAssoc
entries... Is there a good example of demo data for a template
(including Content/ContentAssoc/DataResource entries)?
Thanks,
Jacopo
This was intended to be a starting point for a web content management
system to make it easier to maintain sites and such, or content in an
ecommerce site or whatever. The templating stuff could be used for
XSL:FO as well for "managed" content there, but the original intent was
for web content which is why it does a wrapped preview in the browser on
the main layout editor screen so you can edit/replace content in each
section of the layout page, etc.
I designed this a long time ago as part of a project for a client and
outsourced the work to Al Byers who did the initial implementation. It
was developed to the point where it was sufficient for them, and then
hasn't really seen any attention since except a little bit of
maintenance and modernization here and there, like the stuff you did
recently Jacopo.
It would be great to see this developed out and turned into something
that could be used to manage custom product pages, policy pages,
sales/marketing content, etc.
-David
On Dec 5, 2006, at 6:34 AM, Jacopo Cappellato wrote:
Hi all,
I'm trying to fix some of the issues in the Content application (for
example https://issues.apache.org/jira/browse/OFBIZ-263) but I'm
facing some problems because I don't quite understand the meaning of
some terms.
For example: what are "Layout" and "Templates"? What is a "CompDoc"? I
think that they are special types of content but I'm not sure.
Is there a document/thread or something that I can look at to get more
information?
Thanks for any help,
Jacopo