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,6 +174,7 @@
|
|||
<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:if test="position() <= 15">
|
||||
|
||||
<xsl:variable name="newsfile"><xsl:value-of select="."/></xsl:variable>
|
||||
<xsl:variable name="itemposition" select="position()"/>
|
||||
|
@ -209,6 +210,7 @@
|
|||
<hr class="news"/>
|
||||
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue