Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've been poking around in the xslt trying to add an if statement where it will test for 'today' and assign a different class, but this is certainly more advanced xslt than I'm usually working with. I'm looking at the parts which color weekends different colors as a starting point but I'm struggling to figure out how to compare it to the current day.
Has anyone managed to do this, whereby it will higlight the current day only on the current month?
Any pointers as to how I should be looking to do this would be great.
I take it you are using the PDUlliCalendar.xslt?
If so, go to the last template in the xslt: createOneCell
There's also the check for saturdays and sundays, it's fairly easy to add a check for today as well.
add this below the saturday:
<xsl:if test="date:date() = $cell/@date" >
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted