Can you set list view as the default for an event calendar?

Options
We have a parent group within our school who plan a number of events over the course of the year, but they are spread out fairly thin, no more than one or two per month. It would be handy if the calendar for their events could display in list view, and if we could tell it to show events for the next two or three months.



I don't see a setting for that, wondered if it was a feature I had missed. Many thanks,



CF
Tagged:

Comments

  • Hi Charles. I think you could accomplish this as follows:



    1) Set your Event Calendar part to default to list view and apply Targeting & Security so that only members of a role (in which only those in this parent group exist) are able to view it.



    2) Create an Event Calendar Group part and set it to show only your calendar from step 1. Make sure it's Targeting & Security is set to allow Everyone to view it.



    3) Place both of these parts in a Targeted Content part, making sure that the Event Calendar part appears first in the list.



    4) Place the Targeted Content part wherever you want the calendar to appear.



    What will happen is that if it's one of the members of the parent group logged in to view the calendar, the Targeted Content part will serve up the Event Calendar part to them (in list view). If either an anonymous user or other member not in this role log in to view this page, the Targeted Content will instead serve up the Event Calendar Group part (which shows in traditional 'calendar' view).
  • I'm with you as far as step two - at that point, for me the event calendar group displays the event calendar in calendar view, it does not pick up the preference for list view.



    As you suggested, I went back to the original event calendar and set the default view to list, and I created a new event calendar group showing only that calendar from step one. That's where I hit a wall, the group displays the calendar in calendar view, not list view. I figure I should sort that out before going further to targetting that view to specific users.



    Can you help set me straight? Many thanks.
  • We're basically taking advantage of the fact that the individual calendar part allows you to set the default view to list and the fact that the calendar group part defaults to calendar view.



    But we only ever want site visitors to see one or the other (event calendar or event calendar group) but not both. This is exactly what the Targeted Content part is for. It's basically a container that you drop multiple parts into. The Targeted Content will start with the first part in the list and compare its Targeting & Security settings to see who has the permission to view that part.







    If the user currently viewing the page where the Targeted Content part lives has permission to see the first part inside the Targeted Content part, then they will see that part. If not, the Targeted Content part checks the next part in its list. It keeps going down to find the first one that the site visitor has permission to view and then serves up that part.



    Does that help Charles?

Categories