Link to home
Start Free TrialLog in
Avatar of Kalvyn
KalvynFlag for United States of America

asked on

How do I create a web part to list all calendars in a site?

I am looking for a way to display a linked list of all calendars in a SharePoint site.  Can the content query web part be configured to do that?
Avatar of Jamie McAllister
Jamie McAllister
Flag of Switzerland image

You should be able to set the filters to show all items of Content Type 'Event' to get the calendar items in a site.

However the formatting to make it intelligible might be a challenge depending what you're after.

If something fancy is needed you'll need to edit item style;

http://www.codeproject.com/Articles/756834/Customizing-the-Content-Query-Web-Part-and-Item-St
Avatar of Kalvyn

ASKER

I'm not looking to list the events, just a list of the Calendar Apps in the site and hopefully a link to the App when selected.  Maybe an aspx page calling the SharePoint API.
To get something as specific as that, indeed you might need custom code. This could be script calling the client object model rather than something compiled.

If you see the examples here, check out the section on Apply Filters to List Retrieval  - the idea being the list title of "Calendar" could be your filter.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.