Adding Calender View Web Part

Default .aspx

<WebPartPages:WebPartZone runat=”server” FrameType=”None” ID=”CalendarWebPart” />

Elements.xml

<File Path=”Pages\Default.aspx” Url=”Pages/Default.aspx” ReplaceContent=”TRUE”>
<View Type=”CALENDAR” List=”Lists/Calendar” BaseViewID=”3″ DisplayName=”Pending Registrations” Name=”Pending Registrations” RecurrenceRowset=”TRUE” WebPartZoneID=”CalendarWebPart” WebPartOrder=”1″>
<![CDATA[
<WebPart xmlns=”http://schemas.microsoft.com/WebPart/v2″&gt;
<Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.ListViewWebPart</TypeName>
<Title>Calendar</Title>
</WebPart>
]]>
</View>
</File>

 

Default.aspx

<WebPartPages:WebPartZone runat=”server” FrameType=”TitleBarOnly” ID=”Wepart5″ Title=”loc:full” >
</WebPartPages:WebPartZone>

 

Elements.xml

<File Path=”Pages\Default.aspx” Url=”Pages/Default.aspx” ReplaceContent=”TRUE” >
<View BaseViewID=”2″ List=”lists/Calendar”
WebPartZoneID=”Wepart5″ DefaultView=”TRUE” Type=”CALENDAR”
WebPartOrder=”1″ >
<![CDATA[
<WebPart xmlns=”http://schemas.microsoft.com/WebPart/v2″&gt;
<Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.ListViewWebPart</TypeName>
<Title>Calendar</Title>
</WebPart>
]]>
</View>
</File>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s