You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jorg Heymans <jh...@domek.be> on 2004/08/25 16:55:27 UTC
doc for directorygenerator wrong
Hi,
The sorting option for the directorygenerator has a mistake in it. It
states that the parameter "time" should be used to sort the files by
time. The source however reads a parameter called "lastmodified".
I assumed that The Source Is Always Right and patched the docs. The
patch is against the cvs tree, can this be applied against the svn tree?
Regards
Jorg
Index: directory-generator.xml
===================================================================
RCS file:
/home/cvspublic/cocoon-2.1/src/documentation/xdocs/userdocs/generators/directory-generator.xml,v
retrieving revision 1.8
diff -u -r1.8 directory-generator.xml
--- directory-generator.xml 26 May 2004 11:37:05 -0000 1.8
+++ directory-generator.xml 25 Aug 2004 14:56:06 -0000
@@ -77,7 +77,7 @@
the file system. So this option influences the caching of
the directory listing.</li>
<li>sort: Sets the sort order in which the <code>file</code>
and <code>directory</code>
nodes are returned. Possible values are <code>name</code>,
<code>size</code>,
- <code>time</code> and <code>directory</code> (where
<code>directory</code> is the same
+ <code>lastmodified</code> and <code>directory</code> (where
<code>directory</code> is the same
as <code>name</code>, except that directory entries are
listed first). The default sort
order is <code>name</code>.</li>
<li>reverse: Reverses the sort order, defaults to
<code>false</code>.</li>
Re: doc for directorygenerator wrong
Posted by Pier Fumagalli <pi...@betaversion.org>.
Checked and fixed... Thanks!
Pier
On 25 Aug 2004, at 15:55, Jorg Heymans wrote:
> Hi,
>
> The sorting option for the directorygenerator has a mistake in it. It
> states that the parameter "time" should be used to sort the files by
> time. The source however reads a parameter called "lastmodified".
>
> I assumed that The Source Is Always Right and patched the docs. The
> patch is against the cvs tree, can this be applied against the svn
> tree?
>
>
> Regards
> Jorg
>
> Index: directory-generator.xml
> ===================================================================
> RCS file:
> /home/cvspublic/cocoon-2.1/src/documentation/xdocs/userdocs/
> generators/directory-generator.xml,v
> retrieving revision 1.8
> diff -u -r1.8 directory-generator.xml
> --- directory-generator.xml 26 May 2004 11:37:05 -0000 1.8
> +++ directory-generator.xml 25 Aug 2004 14:56:06 -0000
> @@ -77,7 +77,7 @@
> the file system. So this option influences the caching of
> the directory listing.</li>
> <li>sort: Sets the sort order in which the <code>file</code>
> and <code>directory</code>
> nodes are returned. Possible values are
> <code>name</code>, <code>size</code>,
> - <code>time</code> and <code>directory</code> (where
> <code>directory</code> is the same
> + <code>lastmodified</code> and <code>directory</code>
> (where <code>directory</code> is the same
> as <code>name</code>, except that directory entries are
> listed first). The default sort
> order is <code>name</code>.</li>
> <li>reverse: Reverses the sort order, defaults to
> <code>false</code>.</li>
>
>