Copied to clipboard

Flag this post as spam?

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


  • Niels Kristiansen 166 posts 382 karma points
    Nov 09, 2009 @ 14:10
    Niels Kristiansen
    0

    Change the Calendar to "Month Year" sorting

    Hi,

    I have tried to change the XSLT so it can show the events like this:


    March 2009
    12.03.09 | The events name is here | The description is here
    15.03.09 | The events name is here | The description is here

    Maj 2009
    03.05.09 |  The events name is here | The description is here


    …and so on. I can't find out to sort the Calendar so it is placed in month. The closest I got was written the month for every event.

    Is there anyone who can help me with the right XSLT?

     

    Kind regards,

    Niels Albjerg Kristiansen

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Nov 10, 2009 @ 11:35
    Chris Houston
    0

    Hi Niels,

    Have you tried using the following extension in your XSLT?

    Exslt.ExsltDatesAndTimes:monthinyear('String d')

    If you replace the string with your date node and then use this as the sort parameter.

    Cheers,

    Chris

  • Niels Kristiansen 166 posts 382 karma points
    Nov 23, 2009 @ 20:50
    Niels Kristiansen
    0

    Sorry for the delay Chris

    Could you help me a little more with the XSLT, I'm not a supercool XSLT programmer i must admit :)

     

    Kind regards,

    Niels

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Dec 12, 2009 @ 11:22
    Peter Dijksterhuis
    0

    Niels,

    You could create a loop that runs through the months. Then for each month, get the events (use pdcalendar:GenerateDates) and display them.

    Does this help?

    Peter

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies