You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alan <al...@engrm.com> on 2004/07/04 16:35:52 UTC
Query Parameters in Sitemap
I'd like to be able to reference single query parameters in the
sitemap. I have a query string that looks like this:
by-production.xml?date=2004-06-01&prod=343
I want it to generate a document from a data document that has
been filtered by the month, I would call that document directly
thus:
by-vendor.xml?date=2004-06-01
This will filter the document by the specified month.
When I pass use-request-parameters, I can tell that the
by-vendor.xml document is be created for each "production" for
each month when I would like it to cache a single document for
the month.
I'd like to do this in my sitemap:
<map:generate src="by-vendor.xml?date={$date}"/>
Or maybe:
<map:generate src="{$date}/by-vendor.xml"/>
Can't find the syntax to pluck specific parameters.
Thank you.
--
Alan / alan@engrm.com / http://engrm.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Query Parameters in Sitemap
Posted by defe <de...@free.fr>.
Alan wrote:
> I'd like to be able to reference single query parameters in the
> sitemap. I have a query string that looks like this:
>
> by-production.xml?date=2004-06-01&prod=343
>
> I want it to generate a document from a data document that has
> been filtered by the month, I would call that document directly
> thus:
>
> by-vendor.xml?date=2004-06-01
>
> This will filter the document by the specified month.
>
> When I pass use-request-parameters, I can tell that the
> by-vendor.xml document is be created for each "production" for
> each month when I would like it to cache a single document for
> the month.
>
> I'd like to do this in my sitemap:
>
> <map:generate src="by-vendor.xml?date={$date}"/>
>
> Or maybe:
>
> <map:generate src="{$date}/by-vendor.xml"/>
>
> Can't find the syntax to pluck specific parameters.
>
>Thank you.
>
>
>
maybe, using the request-param input module may help you :
<map:generate src="{request-param:date}/by-vendor.xml"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org