cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Schmidt <>
Subject RE: Calling function in root sitemap flow
Date Fri, 13 Nov 2015 13:43:56 GMT
Hi Bardo,

there is no inheritance in what you're describing.

However, there's a workaround a lot of people are using:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sitemap [
      <!ENTITY import_global_resources SYSTEM "sitemap-resources.xmap">
<map:sitemap xmlns:map="">




Where sitemap-resources.xmap is just a plain file with what you'd normally include into your
map:resources block. You can do the same with pipelines if you want.

That way you'd have at least a single source for your global sitemap resources. You can do
the same in the sub sitemaps.

Please note: When you're changing the "sitemap-resources.xmap" file (name it how you want),
then you have to restart cocoon or you have to save the including sitemap again to see your
changes. If you have a lot of sub sitemaps, the former would be the better option of course.

Hope that helps!


From: Bardo Nelgen []
Sent: Dienstag, 10. November 2015 11:35
Subject: Calling function in root sitemap flow

Hi all,

obviously I'm missing something:

Could anyone please point me towards the proper method of calling a function in root sitemap
flow (incl. passing parameters) from a sub-sitemap's matcher ?

Is this possible at all ?

Thanks for any hint !!



View raw message