Want more features on Pastebin? Sign Up, it's FREE!
Guest

List Definition

By: a guest on Jul 22nd, 2012  |  syntax: XML  |  size: 2.98 KB  |  views: 59  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <List xmlns:ows="Microsoft SharePoint" Title="WW - ListDefinition1" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/WW-ListDefinition1" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
  3.   <MetaData>
  4.     <ContentTypes>
  5.       <ContentTypeRef ID="0x01">
  6.         <Folder TargetName="Item" />
  7.       </ContentTypeRef>
  8.       <ContentTypeRef ID="0x0120" />
  9.     </ContentTypes>
  10.     <Fields>
  11.       <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" DisplayName="Item" Required="TRUE" Sealed="TRUE"/>
  12.       <FieldRef Name="LinkTitle" DisplayName="Item22" Required="TRUE" Sealed="TRUE"/>
  13.     </Fields>
  14.     <Views>
  15.       <View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
  16.         <Toolbar Type="Standard" />
  17.         <XslLink Default="TRUE">main.xsl</XslLink>
  18.         <RowLimit Paged="TRUE">30</RowLimit>
  19.         <ViewFields>
  20.           <FieldRef Name="LinkTitleNoMenu" DisplayName="blabla"></FieldRef>
  21.           <FieldRef Name="FirstName" DisplayName="blabla1"></FieldRef>
  22.         </ViewFields>
  23.         <Query>
  24.           <OrderBy>
  25.             <FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
  26.           </OrderBy>
  27.         </Query>
  28.         <ParameterBindings>
  29.           <ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
  30.           <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
  31.           <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
  32.         </ParameterBindings>
  33.       </View>
  34.       <View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">
  35.         <Toolbar Type="Standard" />
  36.         <XslLink Default="TRUE">main.xsl</XslLink>
  37.         <RowLimit Paged="TRUE">30</RowLimit>
  38.         <ViewFields>
  39.           <FieldRef Name="Attachments"></FieldRef>
  40.           <FieldRef Name="LinkTitle" DisplayName="blabla"></FieldRef>
  41.           <FieldRef Name="FirstName" DisplayName="blabla1"></FieldRef>
  42.         </ViewFields>
  43.         <Query>
  44.           <OrderBy>
  45.             <FieldRef Name="ID"></FieldRef>
  46.           </OrderBy>
  47.         </Query>
  48.         <ParameterBindings>
  49.           <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
  50.           <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
  51.         </ParameterBindings>
  52.       </View>
  53.     </Views>
  54.     <Forms>
  55.       <Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
  56.       <Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
  57.       <Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
  58.     </Forms>
  59.   </MetaData>
  60. </List>
clone this paste RAW Paste Data