Uploaded image for project: 'Skin Intranet'
  1. Skin Intranet
  2. SKININTRA-285

Split template to easily override target link of ICS events on small calendar

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.7.0
    • None
    • None
    • None
    • 4.8.0 M4

      Currently it is necessary to override this piece of code:

      <xsl:template match="hit[@icsEvent='true']">
              <li data-event-id="{id}" style="display:none;">
                  <a class="agenda-list-carousel-el" href="{event/url}">
                      <xsl:if test="event/tag">
                          <div class="agenda-list-carousel-el_tag"><xsl:value-of select="event/tag/label"/></div>
                      </xsl:if>
                      <div class="agenda-list-carousel-el_title"><xsl:value-of select="event/title"/></div>
                      <div class="agenda-list-carousel-el_date">
                          <xsl:call-template name="common-utils-dates">
                              <xsl:with-param name="startDate" select="event/startDate"/>
                              <xsl:with-param name="endDate" select="event/endDate"/>
                          </xsl:call-template>
                      </div>
                  </a>
              </li>
          </xsl:template> 

      To be improved by splitting "href="{event/url}"``" calculation in a separated template so as to be overrided easily 

            laurence Laurence Aumeunier
            dcartier David Cartier-Michaud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: