Adding XSLT conditional to PDCTableCalendar.xslt based on field data...
I am working in Umbraco 4.0.3 and using the PDCalendar package. We have event items as document types and those are getting displayed in a calendar using the PDCTableCalendar.xslt file.
The part of the code in that file that displays the event items in the calendar is as follows:
What I am trying to do here is to add a conditional that will limit the type of events that get displayed. Within the Event Item document type, I have an EventType field where you can choose from Statewide, Regional and County events. I want this particular calendar I'm setting up to only display the Regional events. Can anyone tell me how to code this?
just to the inside of the for-each section, but everything I've tried is resulting in errors because I don't know the proper XSLT syntax to do this. I'm trying to learn on the fly. If I can get this for Regional Events, I'll use the same technique for the Statewide and County events calendars I'm also trying to set up.
Adding XSLT conditional to PDCTableCalendar.xslt based on field data...
I am working in Umbraco 4.0.3 and using the PDCalendar package. We have event items as document types and those are getting displayed in a calendar using the PDCTableCalendar.xslt file.
The part of the code in that file that displays the event items in the calendar is as follows:
What I am trying to do here is to add a conditional that will limit the type of events that get displayed. Within the Event Item document type, I have an EventType field where you can choose from Statewide, Regional and County events. I want this particular calendar I'm setting up to only display the Regional events. Can anyone tell me how to code this?
I'm thinking I need to add the following:
on the for-each line, or to add another line with the following:
just to the inside of the for-each section, but everything I've tried is resulting in errors because I don't know the proper XSLT syntax to do this. I'm trying to learn on the fly. If I can get this for Regional Events, I'll use the same technique for the Statewide and County events calendars I'm also trying to set up.
Oops, meant to say
on that last section of code.
is working on a reply...