From f7e71af698f41d974dacfabebba9293e6a2cb0b7 Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Wed, 19 Jul 2006 12:57:56 +0000
Subject: [PATCH] This page template is recursive and diplay lists of lists to
 display a tree.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8591 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_web/WebSite_viewMap.xml | 111 ++++++++++++++++++
 1 file changed, 111 insertions(+)
 create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewMap.xml

diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewMap.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewMap.xml
new file mode 100644
index 0000000000..5e0994277b
--- /dev/null
+++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewMap.xml
@@ -0,0 +1,111 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.PageTemplates.ZopePageTemplate</string>
+          <string>ZopePageTemplate</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+<tal:block metal:define-macro="master">\n
+  <tal:block metal:use-macro="here/medicentre_section_master/macros/master">\n
+    <tal:block metal:fill-slot="main_content">\n
+      <tal:block metal:define-slot="main">\n
+\n
+        <h1>Site Map</h1>\n
+\n
+        <tal:block tal:replace="nothing"><!--\n
+           This macro is recursive and diplay lists of lists to display a tree.\n
+        --></tal:block>\n
+        <tal:block metal:define-macro="SectionContentList">\n
+          <tal:block tal:define="web_document web_document | nothing"\n
+                     tal:condition="web_document">\n
+            <a tal:attributes="href web_document/link" tal:content="web_document/title"/>\n
+            <tal:block tal:define="content_list web_document/sub-content | nothing"\n
+                       tal:condition="content_list">\n
+              <ul tal:repeat="sub_doc content_list" >\n
+                <li tal:define="web_document sub_doc">\n
+                  <tal:block metal:use-macro="here/WebSite_viewMap/macros/SectionContentList"/>\n
+                </li>\n
+              </ul>\n
+            </tal:block>\n
+          </tal:block>\n
+        </tal:block>\n
+\n
+        <tal:block tal:replace="nothing"><!--\n
+          Initiate the macro with the site tree structure.\n
+        --></tal:block>\n
+        <ul class="sitemap">\n
+          <li tal:define="web_document here/WebSite_getSiteMap">\n
+            <tal:block metal:use-macro="here/WebSite_viewMap/macros/SectionContentList"/>\n
+          </li>\n
+        </ul>\n
+\n
+      </tal:block>\n
+    </tal:block>\n
+  </tal:block>\n
+</tal:block>
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>content_type</string> </key>
+            <value> <string>text/html</string> </value>
+        </item>
+        <item>
+            <key> <string>expand</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>WebSite_viewMap</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
-- 
2.30.9