Foundry now supports paramters in internal related links.
git-svn-id: https://svn.libreccm.org/ccm/trunk@3080 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
c431141540
commit
2ed7b938bc
|
|
@ -47,12 +47,26 @@
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="./targetType = 'internalLink'">
|
<xsl:when test="./targetType = 'internalLink'">
|
||||||
|
<xsl:variable name="params">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="starts-with(./targetURI, '&?')">
|
||||||
|
<xsl:value-of select="concat('&', substring(./targetURI, 3))"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="./targetURI"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:apply-templates select="$links-layout-tree/internal/*">
|
<xsl:apply-templates select="$links-layout-tree/internal/*">
|
||||||
<xsl:with-param name="link-title" tunnel="yes" select="./linkTitle"/>
|
<xsl:with-param name="link-title" tunnel="yes" select="./linkTitle"/>
|
||||||
<xsl:with-param name="link-desc" tunnel="yes" select="./linkDescription"/>
|
<xsl:with-param name="link-desc" tunnel="yes" select="./linkDescription"/>
|
||||||
<xsl:with-param name="href"
|
<xsl:with-param name="href"
|
||||||
tunnel="yes"
|
tunnel="yes"
|
||||||
select="concat($context-prefix, '/redirect/?oid=', ./targetItem/@oid)"/>
|
select="concat($context-prefix,
|
||||||
|
'/redirect/?oid=',
|
||||||
|
./targetItem/@oid,
|
||||||
|
$params)"/>
|
||||||
<xsl:with-param name="target-item-title"
|
<xsl:with-param name="target-item-title"
|
||||||
tunnel="yes"
|
tunnel="yes"
|
||||||
select="./targetItem/title"/>
|
select="./targetItem/title"/>
|
||||||
|
|
|
||||||
|
|
@ -1489,7 +1489,9 @@
|
||||||
<xsl:with-param name="copy-attributes"
|
<xsl:with-param name="copy-attributes"
|
||||||
select="'type accept autocomplete autofocus checked disabled multiple name required size spellcheck tabindex'"/>
|
select="'type accept autocomplete autofocus checked disabled multiple name required size spellcheck tabindex'"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
<xsl:attribute name="value" select="$value"/>
|
<xsl:attribute name="value" select="if($value = '' and ./@value)
|
||||||
|
then ./@value
|
||||||
|
else $value"/>
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="./@placeholder and ./@placeholder-module">
|
<xsl:when test="./@placeholder and ./@placeholder-module">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue