Hi all,
I wonder what is the minimum for a lenya pub?
So I just tried the following if I use the templating mechanism the
minimum would be something like (assuming I do not want to override
1. anything):
mini
|-- config
| `-- publication.xconf
`-- publication.xml
My publication.xconf:
<publication>
<languages>
<language default="true">en</language>
<language>de</language>
</languages>
<template-instantiator name="default"/>
<path-mapper>org.apache.lenya.cms.publication.DefaultDocumentIdToPathMapper</path-mapper>
<document-builder name="default"/>
<breadcrumb-prefix/>
<site-manager name="tree"/>
<link-attribute xpath="//*[namespace-uri() =
'http://www.w3.org/1999/xhtml']/@href"/>
<templates>
<template id="default"/>
</templates>
<content-dir
src="/home/thorsten/src/wyona/data/wyonacomblog/content"/>
</publication>
and the publication.xml:
<lenya:publication
xmlns:lenya="http://apache.org/cocoon/lenya/publication/1.0">
<lenya:name>Wyona Blog</lenya:name>
<lenya:pub-version>1.4-dev</lenya:pub-version>
<lenya:lenya-version>1.4-dev</lenya:lenya-version>
<lenya:cocoon-version>2.1.8 or 2.1.9-dev</lenya:cocoon-version>
<lenya:description>Wyona Research and Development blog <a
href="http://www.wyona.com">wyona.com</a></lenya:description>
<lenya:credits>Special thanks to Wyona developers</lenya:credits>
<lenya:help/>
<lenya:changelog>changes.xml</lenya:changelog>
<lenya:license/>
<lenya:readme>
<ol>
<li>Make sure to configure the content-dir within
wyonacomblog/config/publication.xconf</li>
</ol>
</lenya:readme>
</lenya:publication>
That is working just fine for the default pub. :)
Very nice, kudos for us. ;)
Now trying the same for
<template id="blog"/>
Just adding it like:
<templates>
<template id="default"/>
<template id="blog"/>
</templates>
Will cause an error.
Caused by:
org.apache.lenya.cms.publication.DocumentDoesNotExistException:
Document /feeds/all/index does not exist. Check sitetree, it might need
to be reloaded.
Having
<templates>
<template id="blog"/>
</templates>
Works but I cannot create an entry.
Anyway nice work and thanks to the lenya community.
salu2
--
Thorsten Scherler
COO Spain
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]