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
This was really getting me for awhile... How to get the next recurrence of an event that uses the PDCalendar package. Well, here it is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
exclude-result-prefixes="msxml exslt date umbraco.library pdcalendar">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:variable name="messages" select="pdcalendar:GenerateDates('2009-1-1','2012-12-31','eventDate')" />
<xsl:param name="eventID" select="/macro/eventID"/>
<xsl:if test="count(.) > 0">
I found this and suddenly realized that I didn't have to traverse the umbraco.config xml to find what I needed.
A great relief when I had to produce lists of 2 preceding events and 2 upcoming events in a list, picked from a mix of single and recurring events, and supplied with other properties from the event document page.
Thanks for sharing!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted