El lun, 13-02-2006 a las 09:37 +0100, Thorsten Scherler escribió:
> 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!
> > 
...
> 
> 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 

http://svn.apache.org/viewcvs?rev=377340&view=rev

done

After adopting above commit for your pub, change:
<map:part
src="cocoon:/{2}/{3}/meta?docid={page-envelope:document-id}&lang={page-envelope:document-language}"/>

Thanks for the feedback. :)

HTH

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]

Reply via email to