Foundry: Current section of MPA now gets a class

git-svn-id: https://svn.libreccm.org/ccm/trunk@3620 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-09-16 09:49:15 +00:00
parent 82013214d9
commit cd0fab5723
1 changed files with 5 additions and 1 deletions

View File

@ -92,6 +92,10 @@
<xsl:apply-templates select="$section-layout-tree/*">
<xsl:with-param name="mpa-section-title" tunnel="yes" select="."/>
<xsl:with-param name="href" tunnel="yes" select="@link"/>
<xsl:with-param name="class"
select="if(./@rank = ../../cms:item/rank)
then 'active'
else ''"/>
</xsl:apply-templates>
</xsl:for-each>
</xsl:when>
@ -102,7 +106,7 @@
<xsl:variable name="current-rank" select="./rank"/>
<xsl:variable name="page-number"
select="count($contentitem-tree/sections[./pageBreak = 'true'
select="count($contentitem-tree/sections[./pageBreak = 'true'
and ./rank &lt; ($current-rank + 1)])"/>
<xsl:apply-templates select="$section-layout-tree/*">