cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lassi Immonen" <lassi.immo...@valkeus.com>
Subject [PATCH] RequestParamAction. Can now put sitemap parameters to request attribute
Date Tue, 21 May 2002 11:42:37 GMT
Hi,

I was experimenting with C2:s cinclude system and found out that original
sitemap parameters do not exist when cincluded content is called

I'm wanted to use url itself to describe user and I needed to forward that
info on Python scripts.

<map:match pattern="data/*/*">
    <map:act type="request">
          <map:parameter name="attr.user" value="{1}"/>
          <map:parameter name="attr.date" value="{2}"/>
    </map:act>
  <map:generate src="data.xsp" type="serverpages"/>
   <map:transform type="cinclude"/>

and in data.xsp I have:
<cinclude:include src="cocoon:/projects.py"/>

So the above is only solution I found to be able to get user in python
script.

I don't know would/should it be possible to have original sitemap map
available when content is called in an aggregated way?

Thanks,
    Lassi Immonen

Mime
View raw message