Copied to clipboard

Flag this post as spam?

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


  • Thomas Kahn 602 posts 506 karma points
    Apr 06, 2011 @ 14:40
    Thomas Kahn
    0

    Documentation of all methods in PDCalendar?

    Hi!

    Is there a page where all methods in PDCalendar are documented? Reading the XSLT files that come with the package, I see that there are methods that are used but I'd like to know more about them:

    pdcalendar:GetFirstDOM
    pdcalendar:GetLastDOM
    pdcalendar:DayOfWeekName
    pdcalendar:GenerateDates
    pdcalendar:Days
    pdcalendar:MonthName

    Are there more?

    Regards,
    Thomas

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Apr 06, 2011 @ 21:33
    Peter Dijksterhuis
    1

    In short, there isn't a page yet, but I will create one.

    In short, here's what the methods do:

    GetFirstDOM: input year and month, returns a datetime with the first day of that month (01-01-2011) 

    GetLastDOM: input year and month, returns a datetime with the last day of that month (31-01-2011)

    Days: returns an xml-document containing the daynames and their abbreviations using the culture that is set on the domain. This is used to populate the calendar-header

    GenerateDates: input startdate, enddate and the alias of the documenttype, returns an xml-document with all days between startdate and enddate, it also returns valid events and places those on the right dates.

    DayOfWeekName: input date, returns the name of the day of that date in the culture you set the domainname to

    MonthName: input date, returns the name of the month in the culture you set the domainname to

    These are all methods available, and as you've seen, I use them in the provided xslt-files. All are used to generate the calendar.

    Does this help?

    Regards,

    Peter

     

  • Thomas Kahn 602 posts 506 karma points
    Apr 07, 2011 @ 08:38
    Thomas Kahn
    0

    Hi Peter!

    Yes! That's a great help!
    I think it could help a lot of calendar developers if you would put something along the lines of what you wrote in this thread on the plugin homepage - it doesn't need to be elaborate, just a simple guide.

    What would also helt would be some examples of how to use it, apart from the supplied XSLT files. One thing that I think many people would like to see is how to generate a simple list showing the next 3-4 upcoming events. This is something that I think many people want on their start page. I saw something along these lines in this thread:

    http://our.umbraco.org/forum/getting-started/questions-about-runway-and-modules/7234-Number-of-events-with-PDCalendar

    I think the most useful function would be if a list like this would show the events closest to the current date first. I've found it a bit tricky to get a list like this to behave the way I want, especially when there are recurring events.

    /Thomas

Please Sign in or register to post replies

Write your reply to:

Draft