Making a cocoon publication publishable by Wyona
Michael Homeijer <[email protected]> Thu, 2 Jan 2003 11:36:31 +0100
| Newsgroups | gmane.comp.cms.wyona.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have created a setup with the following components:
- content-store, a sitemap that implements my store api. I have implemented
and xmldb store and plan to have a file store soon.
- collection, a collection within the store, stores resources.
- resources, a resource within a collection. A resource is split into
meta-data and content.
- "configured" collection, a collection in the store that contains a config
collection.
- "config" collection, a collection that holds config data about a
collection and resources, ie. xmlforms configuration to edit a resoures meta
data, xopus or other wysiwig editor configuration to edit the content of a
resource, etc.
The following is a snippet from the sitemap that implements my cms store api
for xml db:
<!-- Create a new resource based on the configuration data -->
<map:match pattern="**/new(key=*)">
<map:generate src="cocoon:/{1}/getconfig(key=config.xml)"/>
<map:transform src="xmldbcreate.xsl">
<map:parameter name="root" value="{1}"/>
<map:parameter name="key" value="{2}"/>
</map:transform>
<map:transform type="cinclude"/>
<map:transform type="xmldb">
<map:parameter name="base"
value="{app:conf/content/@root}/{1}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
I have created a seperate "application" in a sitemap that can list and edit
resources in a "configured" collection. And have a sitemap that displays the
content in the final site. All publication/collection specific data is in
the config part of the collection.
My following step is to add the Wyona magic to the mix.
Based on what I read about Wyona, I think I should get the following in
place in order of priority:
- Dependency manager (dependencies between resources and published pages?)
- Publisher task (to generate the static pages or copy resources to the live
environment)
- Revision controller (check-in/out connection to xopus or other editors and
xmlforms metadata popup)
There's supposed to be information about publishing a Cocoon site with
Wyona, but I didn't find it and I don't know if it applies to my setup.
Can anybody post come comments or pointers to get me started.
TIA,
Michael