forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Jose Pablos <che...@che-che.com>
Subject [PATCH]
Date Thu, 10 Jul 2003 00:21:43 GMT
Hi there,
I got actually 3 in one.
Please review this patch and added to the distribution if you think that 
it is useful:

1) navigation.xmap is not longer on the distribution, so update description.


2) To exclude a non xml file, a my-images directory and a book.xml file 
as menu-items add this line when define the directory generator for your 
custom xmap:

    <map:generate type="directory" src="content/xdocs/wiki">
      <map:parameter name="dateFormat" value="yyyy-MM-dd hh:mm" />
      <map:parameter name="depth" value="10" />
+    <map:parameter name="exclude" 
value=".*[.][^xml]|^my-images$|^book[.]xml$" />
    </map:generate>

So there is not longer this line needed:
-  <xsl:template match="dir:file[not(@name=concat('book', $ext))]">
+  <xsl:template match="dir:file">


3) To display a nicer label on the menu items. it will replace '-_' on 
the name for a space character:

-    <menu label="{@name}">
+    <menu label="{translate(@name,'-_',' ')}">


I hope you like them.

Cheers

Cheche

Mime
View raw message