I'm kinda new to Umbraco and PDCalendar. I installed PDCalendar, butI have a problem in that I can see the Calendar, but I can't see any of the events on the calendar.
I am using Umbraco 4, and I installed the PDCalendar package, with Developer/Packages, and I can see it installed. I can also see the three XSLT and Macros (PDCalendar, PDCTableCalendar, PDCUlliCalendar), so I think it's installed correctly.
Then I created a Document Type for the events, and assigned a tab for events, then I added a property to the tab, of type PDCalendar.
Then I created a Template, and inserted the Macro of type PDCTableCalendar.
Finally, I created a new Content page, using the Template I made, and I assinged a start date of today, with Weekly recurrance, on every Monday. Next, I saved and published, then I viewed the page.
I can see the calendar, but I can't see the events. The calendar works perfectly, but there are no events showing on the days.
What did I do wrong? I tried to follow the instructions, but I must have forgotten to do something. Can someone help me, please?
Calendar working, but I can't see any events
Hi,
I'm kinda new to Umbraco and PDCalendar. I installed PDCalendar, butI have a problem in that I can see the Calendar, but I can't see any of the events on the calendar.
I am using Umbraco 4, and I installed the PDCalendar package, with Developer/Packages, and I can see it installed. I can also see the three XSLT and Macros (PDCalendar, PDCTableCalendar, PDCUlliCalendar), so I think it's installed correctly.
Then I created a Document Type for the events, and assigned a tab for events, then I added a property to the tab, of type PDCalendar.
Then I created a Template, and inserted the Macro of type PDCTableCalendar.
Finally, I created a new Content page, using the Template I made, and I assinged a start date of today, with Weekly recurrance, on every Monday. Next, I saved and published, then I viewed the page.
I can see the calendar, but I can't see the events. The calendar works perfectly, but there are no events showing on the days.
What did I do wrong? I tried to follow the instructions, but I must have forgotten to do something. Can someone help me, please?
, Karen from Santa Barbara
Hi,
Sorry for the late reply!
After creating the DocumentType, did you alter the xslt-file accordingly?
There's a line there that says:
<xsl:variable name="events" select="pdcalendar:GenerateDates($startdate,$enddate,'Event')" />
Change 'Event' into the alias you gave the property of type PDCalendar (Case sensitive)
HTH,
PeterD
Hi,
I did not modify the XSLT, but I used the "event" alias, as you recommended in the instructions. I checked the XSLT, and the line says:
<xsl:variable name="events" select="pdcalendar:GenerateDates($startdate,$enddate,'event')" />
And 'event' is also the alias name on my DocumentType. The case matches. But I do not see the event listed in the calendar - only the calendar itself.
Hi Peter.
I have the same problem. Followed instructions and I'm able to see the calendar and navigate the differents dates.
Where should I input the events?
Thanks
Javier,
Did you create a property of type PDCalendar in one of your document-types?
If so, you should use the alias from that property in the xslt-file (as described in an earlier post).
Does this help?
Peter
Peter,
I'm getting very confused. This is what I've done:
1. Install the package (found 1 datatype, 3 macros, 3 XSLT files, 1 stylesheet)
2. Modify 1 of my Document Types. Add a new tab (name calendar) and add property (name and alias: events) of type PdCalendar to the new tab.
3. Modify template to insert macro PDCTableCalendar
4. In document content, add a start date (2010-06-01) and recurrence daily
5. Save and Publish
With that I can see the calendar, can navigate between the months.
I'm missing a place to create new events so they can be showed in the calendar.
Thanks for your help.
Ok, you're on the right track here.
The document-type you modified (by adding the PDCalendar) is the document you can use to create events to show in the calendar.
So, in your tree, anywhere where you allow that document-type to be created, you can create events that show in the calendar.
To make them show in the calendar, you need to edit the pdtablecalendar.xslt
You named the property 'events', so lookup the line
<xsl:variable name="events" select="pdcalendar:GenerateDates($startdate,$enddate,'Event')" />
Change 'Event' into 'events'
Now, your calendar should show your first document (with startdate 2010-06-01)
Hope this helps,
Peter
Hi again,
Ok, now it's working. Really don't know what was wrong, I just create a new installation and did same steps as before, but now worked.
For some strange reason, the section of Recurrence, showed only "None, Daily....Yearly", but not the "Every" part. Must be the elfs.. lol.
Thanks for your help.
Javier
is working on a reply...