New template tag for creating link to the item itself. Use for example if an

item is shown using a portlet there should be a link to the normal detail
view of the item.


git-svn-id: https://svn.libreccm.org/ccm/trunk@3071 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-01-07 14:13:10 +00:00
parent d719ddc3e3
commit 4070a7f699
2 changed files with 20 additions and 0 deletions

View File

@ -561,6 +561,24 @@
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<foudry:doc section="user" type="template-tag">
<foundry:doc-desc>
<p>
Provides a link to content item itself. Useful if a content item is shown using a
portlet and you want to create a link to the normal detail view of the item.
</p>
</foundry:doc-desc>
</foudry:doc>
<xsl:template match="content-item-layout//content-item-link">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:apply-templates>
<xsl:with-param name="href"
tunnel="yes"
select="concat($context-prefix, '/redirect/?oid=', $contentitem-tree/masterVersion/@oid)"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="/content-item-layout//show-property"> <xsl:template match="/content-item-layout//show-property">
<xsl:param name="contentitem-tree" tunnel="yes"/> <xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:variable name="name" select="./@name"/> <xsl:variable name="name" select="./@name"/>

View File

@ -35,6 +35,8 @@
indent="yes" indent="yes"
encoding="utf-8"/> encoding="utf-8"/>
<xsl:strip-space elements="*"/>
<xsl:template match="bebop:page"> <xsl:template match="bebop:page">
<xsl:variable name="class" select="@class" /> <xsl:variable name="class" select="@class" />