From 0aacd1707a9b6ff6b99129b3ffe08ef5d70bb447 Mon Sep 17 00:00:00 2001 From: jensp Date: Wed, 3 Dec 2014 09:07:37 +0000 Subject: [PATCH] Various bug fixes and improvments for Foundry found while working on the theme for Camden. This includes: - Related links - Content item - Navigation: It is now possible to omit the root part and the last path of the breadcrumbs) git-svn-id: https://svn.libreccm.org/ccm/trunk@3001 8810af33-2d31-482b-a856-94f89814c4df --- .../lib/template-tags/content-items.xsl | 12 ++-- .../content-items/assets/related-links.xsl | 26 +++---- .../foundry/lib/template-tags/navigation.xsl | 67 ++++++++++++++----- 3 files changed, 68 insertions(+), 37 deletions(-) diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl index e632059d4..0ab29fb31 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl @@ -630,21 +630,25 @@ + and @category = $category + and not(@style)]"> + and @category = $category + and not(@style)]"/> + and not(@category) + and not(@style)]"> + and not(@category) + and not(@style)]"/> diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/assets/related-links.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/assets/related-links.xsl index 57be79e7e..4f7629931 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/assets/related-links.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/assets/related-links.xsl @@ -30,29 +30,21 @@ version="2.0"> - + + + + + - - - - - - - - - - - - + - + @@ -64,10 +56,10 @@ - - + --> diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/navigation.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/navigation.xsl index 057b3dce4..fd6877c15 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/navigation.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/navigation.xsl @@ -2,6 +2,7 @@

These tags are used to output data provided by the ccm-navigation module. - More excalty the navigation menu(s) and the breadcrumbs on a site are generated + More exactly the navigation menu(s) and the breadcrumbs on a site are generated using these tags.

+ + +

+ Show the breadcrumbs for the current page. The separator between each breadcrumb is + provided by the child element breakcrumb-separator. The contents + of this element is used a separator between the breadcrumbs. This allows it to + use simple characters of more complex HTML. +

+
+ + +

+ If set the yes, the breadcrumb for the root level is omitted. +

+
+ +

+ If set the yes, the breadcrumb for last entry (the current + category) is omitted. +

+
+
+
+ + + + - - - - - - - + + + + + + + + + + + - + @@ -265,7 +300,7 @@ -