You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Lassi Immonen <la...@valkeus.com> on 2002/05/21 13:42:37 UTC
[PATCH] RequestParamAction. Can now put sitemap parameters to request attribute
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