[MKDoc-commit] Added document descriptions as title attributes to
links
chris at mkdoc.demon.co.uk
chris at mkdoc.demon.co.uk
Fri Oct 29 16:54:58 BST 2004
Log Message:
-----------
Added document descriptions as title attributes to links
Modified Files:
--------------
mkd/resources/templates/macros/document/menu_children:
en.html
mkd/resources/templates/macros/document/menu_siblings:
en.html
-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/resources/templates/macros/document/menu_children/en.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -Lresources/templates/macros/document/menu_children/en.html -Lresources/templates/macros/document/menu_children/en.html -u -r1.8 -r1.9
--- resources/templates/macros/document/menu_children/en.html
+++ resources/templates/macros/document/menu_children/en.html
@@ -1,10 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
<!--?
Children List Fragment Template
+ ===============================
This fragment contains versions of the listing of child documents
for the three different user conditions, anonymous, user and editor.
+ Only editors get the full listing of child documents, users and anon
+ don't get the hidden documents.
+
The children_id is defined in order that this child listing macro
can have some things overridden to enable it to generate a grandchild
listing. There is an example of how to do this here:
@@ -13,6 +18,27 @@
$Id$
+
+ Author: Chris Croome <chris at webarchitects.co.uk>
+ Copyright: (c) 2004, MKDoc Holdings Ltd.
+
+ This file is part of MKDoc.
+
+ MKDoc is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ MKDoc is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with MKDoc; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
?-->
<div
xmlns:petal="http://purl.org/petal/1.0/"
@@ -103,10 +129,12 @@
xml:lang="en"
dir="ltr"
lang="en"
+ title="Document Description"
rel="dcterms:hasPart child"
petal:content="child/title"
petal:attributes="href child/uri;
hreflang child/lang;
+ title child/description;
lang child/lang;
xml:lang child/lang;
dir child/direction;"
@@ -148,9 +176,11 @@
dir="ltr"
lang="en"
rel="child"
+ title="Document Description"
petal:content="child/title"
petal:attributes="href child/uri;
hreflang child/lang;
+ title child/description;
lang child/lang;
xml:lang child/lang;
dir child/direction;
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/resources/templates/macros/document/menu_siblings/en.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -Lresources/templates/macros/document/menu_siblings/en.html -Lresources/templates/macros/document/menu_siblings/en.html -u -r1.6 -r1.7
--- resources/templates/macros/document/menu_siblings/en.html
+++ resources/templates/macros/document/menu_siblings/en.html
@@ -1,13 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
<!--?
Sibling List Fragment Template
+ ==============================
This fragment contains versions of the sibling document
listing, one for the three different user conditions,
anonymous, user and editor.
+ Only editors get the full listing of sibling documents,
+ users and anon don't get the hidden documents.
+
$Id$
+
+ Author: Chris Croome <chris at webarchitects.co.uk>
+ Copyright: (c) 2004, MKDoc Holdings Ltd.
+
+ This file is part of MKDoc.
+
+ MKDoc is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ MKDoc is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with MKDoc; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
?-->
<div
xmlns:petal="http://purl.org/petal/1.0/"
@@ -37,8 +63,10 @@
rel="parent"
name="siblings"
id="siblings"
+ title="Document Description"
petal:attributes="href self/parent/uri;
hreflang self/parent/lang;
+ title self/parent/description;
lang self/parent/lang;
xml:lang self/parent/lang;
dir self/parent/direction;"
@@ -55,8 +83,10 @@
lang="en"
dir="ltr"
rel="sibling"
+ title="Document Description"
petal:attributes="href sibling/uri;
hreflang sibling/lang;
+ title sibling/description;
lang sibling/lang;
xml:lang sibling/lang;
dir sibling/direction;
@@ -83,12 +113,14 @@
xml:lang="en"
lang="en"
dir="ltr"
- rel="dcterms:isPartOf parent"
+ rel="parent"
name="siblings"
id="siblings"
+ title="Document Description"
petal:content="self/parent/title"
petal:attributes="href self/parent/uri;
hreflang self/parent/lang;
+ title self/parent/title;
lang self/parent/lang;
xml:lang self/parent/lang;
dir self/parent/direction;"
@@ -104,15 +136,17 @@
lang="en"
dir="ltr"
rel="sibling"
+ title="Document Description"
petal:attributes="href sibling/uri;
hreflang sibling/lang;
+ title sibling/description;
dir sibling/direction;
lang sibling/lang;
xml:lang sibling/lang;
class sibling/showable_class"
petal:omit-tag="true: self/equals sibling"
><strong
- petal:omit-tag="false:self/equals sibling"
+ petal:omit-tag="false: self/equals sibling"
petal:content="sibling/title"
>Sibling Document Title</strong></a>
</p>
@@ -132,12 +166,14 @@
xml:lang="en"
lang="en"
dir="ltr"
- rel="dcterms:isPartOf parent"
+ rel="parent"
name="siblings"
id="siblings"
+ title="Document Description"
petal:content="self/parent/title"
- petal:attributes="href self/parent/uri;
+ petal:attributes="href self/parent/uri;
hreflang self/parent/lang;
+ title self/parent/description;
lang self/parent/lang;
xml:lang self/parent/lang;
dir self/parent/direction;"
@@ -153,8 +189,10 @@
lang="en"
dir="ltr"
rel="sibling"
+ title="Document Description"
petal:attributes="href sibling/uri;
hreflang sibling/lang;
+ title sibling/desctiption;
dir sibling/direction;
lang sibling/lang;
xml:lang sibling/lang;
More information about the MKDoc-commit
mailing list