adding id to calendar days for direct link on single days

This commit is contained in:
vv01f 2014-02-27 20:49:26 +01:00
parent 6faedd9a8e
commit 6a8686a825
2 changed files with 5 additions and 2 deletions

View File

@ -12,8 +12,7 @@ Das gleiche wäre im Portal noch offen, aber wo muss es rein?
== Events im Portal, Link im Zweifel auf den Kalender == Events im Portal, Link im Zweifel auf den Kalender
Wenn ein Eintrag für Events oder News keinen Link hat, sollte der Link auf das Datum im Kalender verweisen. Wenn ein Eintrag für Events oder News keinen Link hat, sollte der Link auf das Datum im Kalender verweisen.
* Datum im calendar muss einen anchor erhalten * Wenn kein Link, muss der Link anhand des Datum gesetzt werden (adding attribute href: condar.html#{month}-{day} )
* Wenn kein Link, muss der Link anhand des Datum gesetzt werden
again: Wo ist der Ansatzpunkt.. again: Wo ist der Ansatzpunkt..
== Periodische Termine für calender etc. == Periodische Termine für calender etc.

View File

@ -77,6 +77,10 @@
<xsl:otherwise>3</xsl:otherwise> <xsl:otherwise>3</xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:attribute> </xsl:attribute>
<!-- vv01f: adding id to jump to a specific date with links and hashtag liek {$month}-{$day} //-->
<xsl:attribute name="id">
<xsl:value-of select="concat(date:month-in-year($date), '-', date:day-in-month($date))"/>
</xsl:attribute>
<xsl:variable name="ddate"> <xsl:variable name="ddate">
<xsl:call-template name="ddate"> <xsl:call-template name="ddate">