Copied to clipboard

Flag this post as spam?

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


  • ds 191 posts 223 karma points
    Jun 10, 2011 @ 15:56
    ds
    0

    Customize style and behaviour of PDCalendar?

    Hi Peter,

    I want to use PDCalendar as standard asp.net calendar style like in the following.

    How can I achieve that style? Secondly if an event is set on the admin backend, I want the event date just grayed-out only. If the user clicks that event date, I want to display simply the details on the sub page.

    Hope to give me some feedback

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Jun 10, 2011 @ 21:39
    Peter Dijksterhuis
    0

    Hi,

    Included in the package are 2 xslt-files and 1 stylesheet: pdcullicalendar.xslt, pdctablecalendar.xslt and pdculli.css

    You could alter the xslt to stop writing the event-names, and then you'd have to create a template where you show all events for 1 day.

    The stylesheet can be easily modified to get the desired result for the markup of the calendar (table and ulli are both in that stylesheet.

    Does this get you further?

    Peter

  • ds 191 posts 223 karma points
    Jun 11, 2011 @ 13:20
    ds
    0

    Thanks for the info Peter.

    I must admit that I am not good at xslt. Could you please tell me firstly how I can make short version of week days? like Monday as Mo, Tuesday as Tue

  • ds 191 posts 223 karma points
    Jun 13, 2011 @ 21:27
    ds
    0

    Hi again Peter, hope that you would give me some feedback for my above question

  • Andrew 14 posts 34 karma points
    Dec 20, 2012 @ 14:23
    Andrew
    0

    To display short days of the week you can just use the following:

    <xsl:for-each select="$days">

        <th><xsl:value-of select="substring(@weekday,1,3)"/></th>

    </xsl:for-each>

    I'm not sure if this is the best way, but it works for me.

     

    Thanks,

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Dec 20, 2012 @ 19:22
    Peter Dijksterhuis
    0

    You could also use 

    <xsl:value-of select="@abbreviation"/>

    Peter

Please Sign in or register to post replies

Write your reply to:

Draft