Another improvement for Foundry: It is now possible to set a "no result" text if an object list contains no results. Also
there was bug for object lists which can be filtered by the user: The filter form did not appear if there are no results. git-svn-id: https://svn.libreccm.org/ccm/trunk@3813 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
ad28c9b42d
commit
227b1cb221
|
|
@ -77,13 +77,19 @@
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:if test="count($object-list-datatree/nav:objectList/nav:item) >= 1">
|
<xsl:apply-templates>
|
||||||
<xsl:apply-templates>
|
<xsl:with-param name="object-list-datatree"
|
||||||
<xsl:with-param name="object-list-datatree"
|
tunnel="yes"
|
||||||
tunnel="yes"
|
select="$object-list-datatree"/>
|
||||||
select="$object-list-datatree"/>
|
</xsl:apply-templates>
|
||||||
</xsl:apply-templates>
|
</xsl:if>
|
||||||
</xsl:if>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="object-list/no-content">
|
||||||
|
<xsl:param name="object-list-datatree" tunnel="yes"/>
|
||||||
|
|
||||||
|
<xsl:if test="$object-list-datatree/nav:noContent">
|
||||||
|
<xsl:apply-templates select="current()/*"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue