Foundry: Some more documentation

git-svn-id: https://svn.libreccm.org/ccm/trunk@3374 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-05-04 17:42:31 +00:00
parent 637f6759a1
commit 7a866b11e2
4 changed files with 67 additions and 3 deletions

View File

@ -28,6 +28,23 @@
exclude-result-prefixes="xsl xs bebop cms foundry nav ui" exclude-result-prefixes="xsl xs bebop cms foundry nav ui"
version="2.0"> version="2.0">
<foundry:doc-file>
<foundry:doc-file-title>Tags for ccm-cms-types-article</foundry:doc-file-title>
<foundry:doc-file-desc>
<p>
The tags in these file are used to display the content
elements of ccm-cms-types-article.
</p>
</foundry:doc-file-desc>
</foundry:doc-file>
<foundry:doc section="user" type="template-tag">
<foundry:doc-desc>
<p>
Outputs the lead text of a article.
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="/content-item-layout//lead-text"> <xsl:template match="/content-item-layout//lead-text">
<xsl:param name="contentitem-tree" tunnel="yes"/> <xsl:param name="contentitem-tree" tunnel="yes"/>
@ -41,6 +58,13 @@
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<foundry:doc section="user" type="template-tag">
<foundry:doc-desc>
<p>
Outputs the main text of a article.
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="/content-item-layout//main-text"> <xsl:template match="/content-item-layout//main-text">
<xsl:param name="contentitem-tree" tunnel="yes"/> <xsl:param name="contentitem-tree" tunnel="yes"/>

View File

@ -29,7 +29,6 @@
version="2.0"> version="2.0">
<xsl:template match="notes"> <xsl:template match="notes">
<xsl:if test="$data-tree/cms:contentPanel/cms:item/ca_notes <xsl:if test="$data-tree/cms:contentPanel/cms:item/ca_notes
or $data-tree/nav:greetingItem/cms:item/ca_notes"> or $data-tree/nav:greetingItem/cms:item/ca_notes">
<xsl:apply-templates/> <xsl:apply-templates/>

View File

@ -29,6 +29,14 @@
exclude-result-prefixes="xsl xs bebop cms foundry nav ui" exclude-result-prefixes="xsl xs bebop cms foundry nav ui"
version="2.0"> version="2.0">
<foundry:doc section="user" type="template-tag">
<foundry:doc-desc>
<p>
Root element to create the list of related links assigned to an
content item
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="related-links"> <xsl:template match="related-links">
<xsl:param name="contentitem-tree" tunnel="yes"> <xsl:param name="contentitem-tree" tunnel="yes">
<xsl:choose> <xsl:choose>
@ -46,6 +54,15 @@
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<foundry:doc section="user" type="template-tag">
<foundry:doc-desc>
<p>
This tag wraps the HTML to display a single related link. The
tag also adds the parameters required to create the link into
the environment, for example the URL (href) of the related link.
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="related-links//related-link"> <xsl:template match="related-links//related-link">
<xsl:param name="contentitem-tree" tunnel="yes"> <xsl:param name="contentitem-tree" tunnel="yes">
<xsl:choose> <xsl:choose>
@ -105,18 +122,40 @@
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<foundry:doc section="user" type="template-tag">
<foundry:doc-desc>
<p>
Outputs the title of a related link.
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="related-link//related-link-title"> <xsl:template match="related-link//related-link-title">
<xsl:param name="link-title" tunnel="yes"/> <xsl:param name="link-title" tunnel="yes"/>
<xsl:value-of select="$link-title"/> <xsl:value-of select="$link-title"/>
</xsl:template> </xsl:template>
<foundry:doc section="user" type="template-tag">
<foundry:doc-desc>
<p>
Outputs the description of a related link.
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="related-link//related-link-desc"> <xsl:template match="related-link//related-link-desc">
<xsl:param name="link-desc" tunnel="yes"/> <xsl:param name="link-desc" tunnel="yes"/>
<xsl:value-of select="$link-desc"/> <xsl:value-of select="$link-desc"/>
</xsl:template> </xsl:template>
<foundry:doc section="user" type="template-tag">
<foundry:doc-desc>
<p>
Outputs the title of the target item of an internal related
link.
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="related-link//internal//target-item-title"> <xsl:template match="related-link//internal//target-item-title">
<xsl:param name="target-item-title" tunnel="yes"/> <xsl:param name="target-item-title" tunnel="yes"/>

View File

@ -124,7 +124,8 @@
<!-- jensp 2014-09-16 This is copied from Mandalay. Maybe remove and relay and use <!-- jensp 2014-09-16 This is copied from Mandalay. Maybe remove and relay and use
conditional comments in the other CSS files instead? --> conditional comments in the other CSS files instead? -->
<xsl:value-of select="'&#x3c;!--[if lt IE 9]&#x3e;'" disable-output-escaping="yes"/> <xsl:value-of select="'&#x0A;&#x3c;!--[if lt IE 9]&#x3e;&#x0A;'"
disable-output-escaping="yes"/>
<xsl:choose> <xsl:choose>
<xsl:when test="$css-files-map/css-files/application[@name=$application]"> <xsl:when test="$css-files-map/css-files/application[@name=$application]">
<xsl:for-each select="$css-files-map/css-files/application[@name=$application]/iehacks"> <xsl:for-each select="$css-files-map/css-files/application[@name=$application]/iehacks">
@ -143,7 +144,8 @@
</xsl:for-each> </xsl:for-each>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:value-of select="'&#x3c;![endif]--&#x3e;'" disable-output-escaping="yes"/> <xsl:value-of select="'&#x0A;&#x3c;![endif]--&#x3e;&#x0A;'"
disable-output-escaping="yes"/>
<xsl:if test="$less-onthefly and foundry:debug-enabled()"> <xsl:if test="$less-onthefly and foundry:debug-enabled()">
<script type="text/javascript" <script type="text/javascript"