Anzahl der anzuzeigenden News begrenzen auf 15
git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@449 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
parent
647602f56a
commit
c47ced67f3
|
@ -174,41 +174,43 @@
|
|||
<xsl:template match="/page/news">
|
||||
<xsl:for-each select="newsfile">
|
||||
<xsl:sort select="date:seconds(document(concat('../', .))/item/@date)" data-type="number" order="descending" />
|
||||
|
||||
<xsl:variable name="newsfile"><xsl:value-of select="."/></xsl:variable>
|
||||
<xsl:variable name="itemposition" select="position()"/>
|
||||
|
||||
<xsl:for-each select="document(concat('../', $newsfile))/item">
|
||||
|
||||
<h3 class="news">
|
||||
<a href="{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html">
|
||||
<xsl:value-of select="@title"/>
|
||||
</a>
|
||||
</h3>
|
||||
|
||||
<xsl:call-template name="news-meta"/>
|
||||
|
||||
<div class="news">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="itemposition" select="$itemposition"/>
|
||||
</xsl:apply-templates>
|
||||
|
||||
<xsl:call-template name="include-resources">
|
||||
<xsl:with-param name="include-hidden">no</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:if test="//addendum">
|
||||
<p>
|
||||
<a href="{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html">
|
||||
Weiterlesen...
|
||||
</a>
|
||||
</p>
|
||||
</xsl:if>
|
||||
</div>
|
||||
|
||||
<hr class="news"/>
|
||||
|
||||
</xsl:for-each>
|
||||
<xsl:if test="position() <= 15">
|
||||
|
||||
<xsl:variable name="newsfile"><xsl:value-of select="."/></xsl:variable>
|
||||
<xsl:variable name="itemposition" select="position()"/>
|
||||
|
||||
<xsl:for-each select="document(concat('../', $newsfile))/item">
|
||||
|
||||
<h3 class="news">
|
||||
<a href="{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html">
|
||||
<xsl:value-of select="@title"/>
|
||||
</a>
|
||||
</h3>
|
||||
|
||||
<xsl:call-template name="news-meta"/>
|
||||
|
||||
<div class="news">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="itemposition" select="$itemposition"/>
|
||||
</xsl:apply-templates>
|
||||
|
||||
<xsl:call-template name="include-resources">
|
||||
<xsl:with-param name="include-hidden">no</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:if test="//addendum">
|
||||
<p>
|
||||
<a href="{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html">
|
||||
Weiterlesen...
|
||||
</a>
|
||||
</p>
|
||||
</xsl:if>
|
||||
</div>
|
||||
|
||||
<hr class="news"/>
|
||||
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue