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-94f89814c4dfmaster
parent
d719ddc3e3
commit
4070a7f699
|
|
@ -561,6 +561,24 @@
|
|||
</xsl:choose>
|
||||
</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:param name="contentitem-tree" tunnel="yes"/>
|
||||
<xsl:variable name="name" select="./@name"/>
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
indent="yes"
|
||||
encoding="utf-8"/>
|
||||
|
||||
<xsl:strip-space elements="*"/>
|
||||
|
||||
<xsl:template match="bebop:page">
|
||||
|
||||
<xsl:variable name="class" select="@class" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue