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.
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
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
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
Hi again Peter, hope that you would give me some feedback for my above question
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,
You could also use
<xsl:value-of select="@abbreviation"/>
Peter
is working on a reply...