Adding a Calendar View to a file from ONET.XML

Posted on 04 April 2011 by Spade

Pretty simple, but I always seem to forget…when adding a page to a new site in a Feature, you need the following markup to add a calendar view of an Events list in a ListView web part:

<View List="Lists/Calendar" BaseViewID="2" WebPartZoneID="Top" WebPartOrder="0" DefaultView="TRUE" Type="Calendar" />

Read More

Comments are closed.