-
Improvement
-
Resolution: Unresolved
-
Major
-
1.2.0
-
None
By default, the redirect link is not used on the agenda. I had too overload the template, this is what I've done :
<xsl:template name="agenda"> <xsl:param name="agenda-title"/> <xsl:param name="agenda-waiting"/> <xsl:param name="agenda-error"/> <xsl:param name="agenda-info-none1"/> <xsl:param name="agenda-info-none2"/> <xsl:param name="agenda-info-none3"/> <xsl:param name="css-class-prefix"/> <xsl:param name="agenda-url"/> <li class="user-infos-agenda {$css-class-prefix}-user-infos-agenda"> <xsl:choose> <xsl:when test="$agenda-url != ''"> <a href="{ametys:siteUriPrefix()}/_plugins/zimbra/redirect?target=calendar" onclick="window.open(this.href); return false;" target="_blank" class="user-infos-agenda-title {$css-class-prefix}-user-infos-agenda-title"> <xsl:copy-of select="$agenda-title"/> </a> </xsl:when> <xsl:otherwise> <span class="user-infos-agenda-title {$css-class-prefix}-user-infos-agenda-title"> <xsl:copy-of select="$agenda-title"/> </span> </xsl:otherwise> </xsl:choose> <span class="user-infos-waiting {$css-class-prefix}-user-infos-waiting"><xsl:copy-of select='$agenda-waiting'/></span> <span class="user-infos-error {$css-class-prefix}-user-infos-error" style="display:none;"><xsl:copy-of select='$agenda-error'/></span> <ul style="display:none;" class="user-infos-events {$css-class-prefix}-user-infos-events"></ul> <span style="display:none;" class="user-infos-noevent {$css-class-prefix}-user-infos-noevent"> <span><xsl:copy-of select="$agenda-info-none1"/></span> <xsl:text> </xsl:text> <xsl:copy-of select="$agenda-info-none2"/> <xsl:text> </xsl:text> <span class="user-infos-maxdays {$css-class-prefix}-user-infos-maxdays"></span> <xsl:text> </xsl:text> <xsl:copy-of select="$agenda-info-none3"/> </span> </li> </xsl:template>
But may be it could be better to add the link on the event instead of the title like it is done for mail.