Thorsten Scherler wrote:
Hi all,
I was trying to create a custom menu.xsp for a doctype that only
contains a couple of entries, but constantly running into the problem
that through the menu aggregation in the global-sitemap.xmap I get as
well the menus from the modules.
How can I exclude the menus from the modules?
You may try to overwrite the menu.xmap or menu.xsp in your publication
with an empty implementation (fallback mechansim).
hth
- Felix
The way I found that are working are:
1) remove the menu.xmap from the modules
2) add your doctype specific stuff in the menus of the modules
Both way meaning that you have to modify core modules and that is not
really nice.
I found as well that one way to generate the menus is from the
publication.xconf.
Maybe we should extend the match in global-sitemap and the corresponding
xsl to match the doctype and exclude menu entries that have something
like:
<module name="xhtml" exclude="homepage,..."/>
Then we can match in modules2xinclude.xsl
<xsl:for-each select="module[not(contains($doctype,@exclude))]>
...
</xsl:for-each>
wdyt?
--
Felix Röthenbacher [EMAIL PROTECTED]
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]