SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The following code is displaying my list...the baseview selected is the Calendar view i want but its displaying as a list. How to let SP know this should be displayed as a Calendar?

<View List="Lists/HR Transactions" BaseViewID="2" WebPartZoneID="Main" WebPartOrder="1">
                    <webPart xmlns="">
                            <type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart, Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
                            <importErrorMessage>Cannot import this Web Part</importErrorMessage>
                                <property name="AllowConnect" type="bool">True</property>
                                <property name="Title" type="string">Staff Holiday Calendar</property>
                                <property name="AllowClose" type="bool">False</property>

share|improve this question

Try setting the Type, Scope, and RecurrenceRowset properties as follows:

    List="Lists/HR Transactions" 
share|improve this answer
Hey Rich, I have that in the schema.xml as follows <View BaseViewID="2" DisplayName="Holiday Calendar" Type="CALENDAR" WebPartZoneID="Main" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/15/images/events.png" Url="calendar.aspx" RecurrenceRowset="TRUE" DefaultView="TRUE" ShowHeaderUI="TRUE" MobileUrl="_layouts/15/mobile/viewdaily.aspx"> you think i should try putting it in the element.xml? – Stephen Feb 15 '13 at 15:36
I would start with the properties I've listed. Not all of the attributes of the schema's View element are supported for a module's View element. See View Element (Module) for a full list (note that CALENDAR isn't listed as an option for type, but I've seen examples where it works). – Rich Bennema Feb 15 '13 at 15:40
Thanks for that Rich, tried it with no luck...i'm running out of ideas! – Stephen Feb 15 '13 at 15:44
I can tell this definitely works for Modules sections within an onet.xml file for SP 2010. Maybe it doesn't work in a feature separate from a site definition or maybe it is different in SP 2013. But I would think it should work. – Rich Bennema Feb 15 '13 at 19:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.