I'm currently using PDCalendar for our site and it works well, however we
have now added multiple sites for different languages and re-used the
PDCalendar for each site.
We are noticing that we have an issue where an event place under the English
version of the site appears on the other sites.
Is there any way of only showing events for on the specified site (only English
on the en. Site, Spanish on de. etc.)
To get around this issue, I created new document types for events (CalendarEvent (ES)) for the separate calendars and added a new property eventes (Spanish) etc. with a type of PDCalendar.
Next I created a new Macro and XSLT and copied and pasted from the existing XSLT for displaying the calendar and called this PDCalendarES. Within the new XSLT I changed event to eventes to match the property within the new document type.
A new template was created named Calendar (ES) with the new Macro added.
Now a new calendar can be created using the new Calendar (ES) template each event will use the new CalendarEvent (ES) document type, so each calendar will show separate events in their respective languages.
PDCalendar multiple locations
Hi all,
I'm currently using PDCalendar for our site and it works well, however we have now added multiple sites for different languages and re-used the PDCalendar for each site.
We are noticing that we have an issue where an event place under the English version of the site appears on the other sites.
Is there any way of only showing events for on the specified site (only English on the en. Site, Spanish on de. etc.)
I'll be very grateful of any assistance.
Thanks
David
hi david,
i think you have 2 options.
option 1: buy the pro version, in which you can define a startnode to select the events from
option 2: create a documenttype for events dor each site. that way you will only see events from that particular particular doctype
does this help?
peter
Peter,
Thanks for your reply, but I found a workaround before I saw your reply.
I have been looking at http://our.umbraco.org/projects/website-utilities/pdcalendar/pdcalendar/3474-Question-Accessing-Events-from-Different-Node and have found a solution to this problem; the calendar displays all events using the specific document type not the events that are children of the calendar as I initially thought. Although buying the pro vesion may have been a better option.
To get around this issue, I created new document types for events (CalendarEvent (ES)) for the separate calendars and added a new property eventes (Spanish) etc. with a type of PDCalendar.
Next I created a new Macro and XSLT and copied and pasted from the existing XSLT for displaying the calendar and called this PDCalendarES. Within the new XSLT I changed event to eventes to match the property within the new document type.
A new template was created named Calendar (ES) with the new Macro added.
Now a new calendar can be created using the new Calendar (ES) template each event will use the new CalendarEvent (ES) document type, so each calendar will show separate events in their respective languages.
Regards
David
is working on a reply...