Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jim C 3 posts 23 karma points
    Mar 22, 2011 @ 17:50
    Jim C
    0

    XSLT to display upcoming events

    Been trying to figure out how I can create an XSLT to display upcoming events on the homepage. Lets say I just want to display the next 3 event, or events in the current month.

    Been trying to modify the existing eventArea.xslt to start out, but I'm not having much luck.

     

    Just wondered if some have some tips as I'm not an XSLT master yet.

  • Daniel Bardi 925 posts 2560 karma points
    Mar 22, 2011 @ 18:43
    Daniel Bardi
    0

    Sort by date in a for-each and render items from position 1 to 3.

    <xsl:for-each ... >
    <xsl:sort select="$date" order="ascending"/>
    <xsl:value-of select="blah blah blah"/>
    </xsl:for-each>
  • Matthew Jarvis 129 posts 129 karma points
    Mar 06, 2012 @ 15:00
    Matthew Jarvis
    0

    Hi Jim  -I would like to implement something exactly the same, do you have a finished piece of code that you could share.

    Many Thanks

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft