cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nico Verwer <nver...@gmail.com>
Subject Re: [2.1] cinclude using a pipeline as a generator source
Date Tue, 10 May 2016 08:35:27 GMT
On 7-5-2016 15:10, Christopher Schultz wrote:
> On 5/7/16 7:38 AM, warrell harries wrote:
>>> cocoon:// is understood as standard
>> Awesome. I was hoping it would be something simple like that.
You can use something like

<map:generate 
src="cocoon://{normalize-path:{request:sitemapURIPrefix}../somewhere/else}/whatever.xml"/>

The RequestModule is standard, and the NormalizePathInputModule comes 
from this project <https://github.com/nverwer/cocooncomponents>.
Doing this will make you project "relocatable" relative to the sitemap root.
This works in Cocoon 2.1, which for me is still preferable over 2.2 or 3.

It is good to see that people are still using Cocoon (2.1)!

Best regards,
Nico

Mime
View raw message