Foundry: Additional tag for article for checking if an article has a main text
git-svn-id: https://svn.libreccm.org/ccm/trunk@3879 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
087df71ce5
commit
9eb45277e6
|
|
@ -57,7 +57,23 @@
|
|||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<foundry:doc section="user" type="template-tag">
|
||||
<foundry:doc-desc>
|
||||
<p>
|
||||
Checks if an article has a main text and applies the enclosed
|
||||
tags only if there is a main text.
|
||||
</p>
|
||||
</foundry:doc-desc>
|
||||
</foundry:doc>
|
||||
<xsl:template match="/content-item-layout//if-main-text">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="$contentitem-tree/textAsset/content">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<foundry:doc section="user" type="template-tag">
|
||||
<foundry:doc-desc>
|
||||
<p>
|
||||
|
|
@ -72,4 +88,4 @@
|
|||
disable-output-escaping="yes"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
</xsl:stylesheet>
|
||||
|
|
|
|||
Loading…
Reference in New Issue