Jörn Nettingsmeier wrote:
hi everyone!
i have a publication in lenya 1.4 that does not currently have its own
sitemap.xmap (it inherits it from the default). i don't want to copy and
modify it, since it scares me. instead i'm trying to write a very short
sitemap that mounts the template's sitemap and will take some local
modifications later.
2 questions:
the 1.2 docs mention both "sitemap.xmap" and "publication-sitemap.xmap".
what are they both for? is this distinction still used in 1.4, or does
everything go into sitemap.xmap?
how do i use the fallback mechanism? i find the syntax very confusing
and inconsistent. sometimes it's "fallback:///somefile" (which makes
sense to me), and sometimes it's "{fallback:somefile}" which does not.
That's the old implementation as an input module. You don't have to
use it.
specifically, why does this sitemap not work?
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:pipelines>
<map:pipeline>
<map:match pattern="**">
<!--
<map:mount src="../default/sitemap.xmap" uri-prefix=""
check-reload="yes" reload-method="synchron"/>
-->
<map:mount src="{fallback:sitemap.xmap}" uri-prefix=""
check-reload="yes" reload-method="synchron"/>
If this statement is in sitemap.xmap, it will mount itself.
AFAIK there's a protocol to reference the template directly,
excluding the current publication.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]