You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sergio Carvalho <se...@acm.org> on 2001/06/22 19:16:33 UTC

C2: Passing parameters to aggregated content

Hi,

I need to find a way of passing paramaters to generated content. Something like passing the site section to be used in a local menu, like this:

   <map:match pattern="">
    <map:parameter name="siteSection" value="/frontPage" />
    <map:aggregate element="page">
(...snip...)
     <map:part src="sectionMenu" element="layout-rightbar" />
(...snip...)
     </map:aggregate>
(...snip...)
   </map:match>

to be used like this:

   <map:match pattern="sectionMenu">
    <map:generate type="serverpages" src="datasources/menu.xsp">
     <map:parameter name="rssChannelSection" value="{siteSection}" />
    </map:generate>
   </map:match>
  
However, the {section} comes out null... Do I have to write some action to pass parameters onto the sitemap?

Thanks for any help,

Sergio

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>