[MKDoc-commit] Added loop through child documents of the front page

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Mon Oct 25 11:49:42 BST 2004


Log Message:
-----------
Added loop through child documents of the front page

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/templates/fragments/menu:
        en.html

-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/fragments/menu/Attic/en.html,v
retrieving revision 1.2.2.13
retrieving revision 1.2.2.14
diff -Ltemplates/fragments/menu/en.html -Ltemplates/fragments/menu/en.html -u -r1.2.2.13 -r1.2.2.14
--- templates/fragments/menu/en.html
+++ templates/fragments/menu/en.html
@@ -38,6 +38,36 @@
       petal:attributes="dir dir"
     >|</bdo>
 
+    <!--? The following loop generates a list of the non-hidden
+          child documents of the root document ?-->
+    <div
+      petal:omit-tag=""
+      petal:repeat="child self/root/children_showable"
+      petal:condition="true: self/root/children_showable"
+    >
+      <a
+        href="http://example.com/"
+        hreflang="en"
+        xml:lang="en"
+        lang="en"
+        dir="ltr"
+        petal:content="child/title"
+        petal:attributes="href child/uri; 
+                          hreflang child/lang; 
+                          dir child/direction; 
+                          lang child/lang; 
+                          xml:lang child/lang;"
+        petal:omit-tag="true: self/equals child "
+      ><strong 
+         petal:omit-tag="false: self/equals child" 
+         petal:content="child/title"
+       >Document Title</strong></a>
+      <bdo 
+        dir="ltr"
+        petal:attributes="dir dir"
+      >|</bdo>
+    </div>
+
 <!--?
 
   The following can be used to create menu items that don't link to themselves.


More information about the MKDoc-commit mailing list