Return to Snippet

Revision: 45143
at April 26, 2011 02:12 by nickaranz


Updated Code
<View List="Lists/listPath"
      BaseViewID="0"
      RecurrenceRowset="TRUE"
      WebPartZoneID="Center"
      WebPartOrder="2">
        <![CDATA[
             <webParts>
                  <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
                      <metaData>
                          <type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart,Microsoft.SharePoint,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" />
                          <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
                      </metaData>
                      <data>
                          <properties>
                              <property name="Title">List Title</property>
                              <property name="AllowConnect" type="bool">True</property>
                              <property name="AllowClose" type="bool">False</property>
                          </properties>
                      </data>
                  </webPart>
              </webParts>           
        ]]>
      </View>

<!-- Calendar needs the TYPE property for Calendar View -->
 <View List="Lists/Calendar"
      BaseViewID="2" 
      Type="CALENDAR"   
      Scope="Recursive"
      RecurrenceRowset="TRUE"
      WebPartZoneID="Center"
      WebPartOrder="3">
        
      </View>

Revision: 45142
at April 26, 2011 02:10 by nickaranz


Initial Code
<View List="Lists/DiscussionForum"
      BaseViewID="0"
      RecurrenceRowset="TRUE"
      WebPartZoneID="Center"
      WebPartOrder="2">
        <![CDATA[
             <webParts>
                  <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
                      <metaData>
                          <type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart,Microsoft.SharePoint,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" />
                          <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
                      </metaData>
                      <data>
                          <properties>
                              <property name="Title">Discussion Forum</property>
                              <property name="AllowConnect" type="bool">True</property>
                              <property name="AllowClose" type="bool">False</property>
                          </properties>
                      </data>
                  </webPart>
              </webParts>           
        ]]>
      </View>

<!-- Calendar needs the TYPE property for Calendar View -->
 <View List="Lists/mhcCalendar"
      BaseViewID="2" 
      Type="CALENDAR"   
      Scope="Recursive"
      RecurrenceRowset="TRUE"
      WebPartZoneID="Center"
      WebPartOrder="3">
        
      </View>

Initial URL

                                

Initial Description
I also included how to provision a Calendar list web part in Calendar View

Initial Title
Provisioning Web Parts in Templates - ListViewsWebPart Basic structure

Initial Tags
sharepoint

Initial Language
XML