El lun, 13-02-2006 a las 08:49 +0100, Thorsten Scherler escribió:
> El dom, 12-02-2006 a las 19:52 +0100, Jörn Nettingsmeier escribió:
> > Jörn Nettingsmeier wrote:
> > >
> > > Thorsten Scherler wrote:
> > >>
> > >> Please test the new generator and report bugs to our issue tracker and
> > >> problems to this list.
> > >> I added a small example to the default pub (tutorial.html -> eng only)
> > >> which is actually only a showcase.
> > >> salu2
> > >
> > > i just played around with the generator. since i want to access the
> > > metadata from my page2shtml.xsl, i added the following to my publication
> > > sitemap:
> > > <map:match pattern="lenyabody-*/*/*/*/**">
> > > <map:aggregate element="cmsbody">
> > > <map:part src="cocoon://modules/sitetree/{2}/{3}/breadcrumb/{5}.xml"/>
> > > <map:part src="cocoon://modules/sitetree/{2}/{3}/tabs/{5}.xml"/>
> > > <map:part src="cocoon://modules/sitetree/{2}/{3}/menu/{5}.xml"/>
> > > <map:part src="cocoon://modules/sitetree/{2}/{3}/search/{5}.xml"/>
> > > <map:part
> > > src="cocoon:/{2}/{3}/meta?docid={page-envelope:document-id}"/>
> > > <map:part src="{resource-type:format-xhtml}"/>
> >
> >
> > the LenyaMetaDataGenerator barfs when i create a new document:
> >
> > The source
> > [context://lenya/pubs/politik/content/authoring/personen/index_en.xml.meta]
> > does not exist!
>
> Yeah, that is the default behavior, if you do not specify which language
> you want:
> org.apache.lenya.cms.cocoon.generation.LenyaMetaDataGenerator
> ....
> if (this.language == null) {
> this.language = pub.getDefaultLanguage();
> }
> ...
>
Well if you used the example of the default pub then we have set
lang="en"
http://svn.apache.org/viewcvs.cgi/lenya/trunk/src/webapp/lenya/pubs/default/sitemap.xmap?rev=365905&view=markup
...
<map:match pattern="**meta">
<map:generate type="lenyaMetaData">
<map:parameter name="docid" value="{request-param:docid}"/>
<map:parameter name="lang" value="en"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
...
I will change it right now to
<map:parameter name="lang" value="{page-envelope:document-language}"/>
> HTH
>
> salu2
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]