Hi Jürgen,
Jürgen Ragaller schrieb:
Hi Andreas
Over the weekend I was working on a web-sitemap module and came across a
similar problem:
The goal is to hide documents from the sitemap using a "visible in
sitemap (true | false)" metadata field.
Now I am thinking about using the possibiliy to call lenyas java method
to read metadata from the within the xsl that builds the web-sitemap
(using xalans way to call java) - uuid / pub-id and area are known when
walking through the sitetree xml so it should work...
I guess this will be quite difficult, since you can't access the current
session and document factory from the XSLT. Have you considered the
MetaDataTransformer?
The first stylesheet would insert meta data query tags:
<meta:value element="visibleInSitemap"
ns="http://yourproject.org/lenya/sitemap/1.0"
default="true"
uuid="{$uuid}"
lang="{$language}"/>
After this XSLT you apply the meta data transformer, and a subsequent
XSLT removes the hidden nodes.
Of course I am now looking at how you approached this in the foldernode
module!
I have now put the functionality in a module called "navigation". It
needs a bit more testing, though.
When I have a improved version of the sitemap module I'll add it to the
sandbox.
Cool - I'm sure the sitemap functionality is also useful for others.
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]