Michael Ralston wrote:
In lenya 1.2 I could make a lenya/xslt/navigation directory under my
publication and put customised breadcrumb.xsl, menu.xsl, search.xsl,
tabs.xsl in there.
I've tried doing this with lenya 1.4 and it seems to be ignoring the
publication specific xsl, and just using the default xsl in the
sitetree module.
Has the way this works changed or am I doing something completely wrong?
I fixed this issue... I added this to modules/sitetree/sitemap.xmap
<map:resources>
<map:resource name="fallback-transformation">
+ <!-- use publication-specific navigation schema if available -->
+ <map:act type="resource-exists">
+ <map:parameter name="url"
value="fallback://lenya/pubs/{publication-id}/lenya/xslt/navigation/{stylesheet}.xsl"/>
+ <map:transform
src="fallback://lenya/pubs/{../publication-id}/lenya/xslt/navigation/{../stylesheet}.xsl">
+ <map:parameter name="url" value="{../url}"/>
+ <map:parameter name="root"
value="{page-envelope:context-prefix}/{../publication-id}/{page-envelope:area}/"/>
+ <map:parameter name="area" value="{page-envelope:area}"/>
+ <map:parameter name="chosenlanguage"
value="{page-envelope:document-language}"/>
+ <map:parameter name="defaultlanguage"
value="{page-envelope:default-language}"/>
+ <map:parameter name="breadcrumbprefix"
value="{page-envelope:breadcrumb-prefix}"/>
+ </map:transform>
+ <map:serialize type="xml"/>
+ </map:act>
<map:transform
src="fallback://lenya/modules/sitetree/xslt/navigation/{stylesheet}.xsl">
<map:parameter name="url" value="{url}"/>
MichaelR
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]