Foundry: Better handling for mailto links from contact items
git-svn-id: https://svn.libreccm.org/ccm/trunk@3815 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
227b1cb221
commit
fac74e83b1
|
|
@ -197,9 +197,20 @@
|
|||
<xsl:template match="content-item-layout//*[ends-with(name(), 'contact-entries')]//contact-entry//contact-entry-value-as-link">
|
||||
<xsl:param name="value" tunnel="yes"/>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($value, '@')">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="href"
|
||||
tunnel="yes"
|
||||
select="concat('mailto:', $value)"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="href" tunnel="yes" select="$value"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<foundry:doc section="user" type="template-tag">
|
||||
|
|
|
|||
Loading…
Reference in New Issue