SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

Creating a Custom Document Library through a Feature.

Last post 11-26-2008, 9:20 PM by maxfromphila. 6 replies.
Sort Posts: Previous Next
  •  11-19-2008, 5:17 PM 15408

    Creating a Custom Document Library through a Feature.

    I've spent the past week, trying to

    1. Create new Columns in a feature - Done.

    2. Create a New Content Type that reference the columns based on a document content type  - Done.

    3. Create a List Template for a new Custom Document Library - Believe this is done.

    4. Create a schema.xml file for the new Custom Document Library. -Fails with a file not found error. Although the Document Library is created, without any views.

    Is there anyone who could help me. Even if it sending me a zip of a example you have done, or a step by step guide.

    I followed http://ari.provoke.co.nz/archive/2007/04/18/creating-a-custom-sharepoint-2007-list-definition.aspx for creating custom List Definitions and got it to work. I tried to follow the same practice for a document library and failed.

    My code so far:

    Create a feature:
    <Feature
    Id="{4088DC4B-EB31-4967-B634-C74558DC5347}"
    Title="Config Columns"
    Description="This feature contains site columns used in the Global and Local lists/libraries"
    Version="12.0.0.0"
    Scope="Site"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <
    ElementManifests>
    <
    ElementManifest Location="configcolumn.xml" />
    <ElementManifest Location="configct.xml" />
    <ElementManifest Location="DocTemplates\ConfigDocElements.xml" />
    </
    ElementManifests>
    </
    Feature>

    ConfigColumn:
    <?xml version="1.0" encoding="utf-8" ?>
    <
    Elements xmlns='http://schemas.microsoft.com/sharepoint/'>
    <Field ID="{B76C8224-9EAE-411c-86DD-7E4DC01DEC05}"
    Name="Config category"
    StaticName="ConfigCategory"
    Group="Config Store columns"
    Type="Text"
    DisplayName="Config category"
    SourceID="http://schemas.microsoft.com/sharepoint/v3/fields"
    Sealed="TRUE"
    AllowDeletion="TRUE"
    ShowInFileDlg="FALSE"/>

    <Field ID="{3FEC9EC9-104A-4808-A08F-C285AC6D5FF5}"
    Name="Config value"
    StaticName="ConfigValue"
    Group="Config Store columns"
    Type="Text"
    DisplayName="Config value"
    SourceID="http://schemas.microsoft.com/sharepoint/v3/fields"
    Sealed="TRUE"
    AllowDeletion="TRUE"
    ShowInFileDlg="FALSE"/>

    <Field ID="{8A4FC2C4-2F0A-4ee1-B9C6-8FC718E09349}"
    Name="Config item description"
    StaticName="ConfigItemDescription"
    Group="Config Store columns"
    Type="Note"
    NumLines="10"
    RichText="TRUE"
    RichTextMode="Compatible"
    Sortable="FALSE"
    DisplayName="Config item description"
    SourceID="http://schemas.microsoft.com/sharepoint/v3/fields"
    Sealed="TRUE"
    AllowDeletion="TRUE"
    ShowInFileDlg="FALSE"/>
    </
    Elements>

    The Configct.xml file:
    <?xml version="1.0" encoding="utf-8" ?>
    <
    Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <
    ContentType ID="0x010067555976B4134856AEC19889850F4B69"
    Name="Config Item"
    Group="Config Store Content Types"
    Description="Represents an item in the config store."
    Version="0">
    <
    FieldRefs>
    <
    FieldRef ID="{B76C8224-9EAE-411c-86DD-7E4DC01DEC05}" Name="ConfigCategory" Required="TRUE" />
    <
    FieldRef ID="{3FEC9EC9-104A-4808-A08F-C285AC6D5FF5}" Name="ConfigValue" Required="TRUE" />
    <
    FieldRef ID="{8A4FC2C4-2F0A-4ee1-B9C6-8FC718E09349}" Name="ConfigItemDescription"/>
    </
    FieldRefs>
    </
    ContentType>
    </
    Elements>

    The ConfigDocElements.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <
    Elements xmlns='http://schemas.microsoft.com/sharepoint/'>
    <ListTemplate Name="ConfigDoc"
    Type="10101"
    BaseType="1"
    OnQuickLaunch="TRUE"
    SecurityBits="11"
    Sequence="360"
    DisplayName="Configuration Store Document Library"
    Description="Creates a Document Library with appropriate columns for use with the Config Store solution."
    Image="/_layouts/images/itdl.gif"
    DocumentTemplate="100"
    Hidden="False"/>
    </
    Elements>

    My Schema file is a copy of the DocumentLibrary schema file put inside a folder called ConfigDoc. (Which matches the name of the ListTemplate Name=" "). All I've done within the schema is added my content type which replaced the Document Content type, and added my columns to the fields, like explained in the URL Link I've put above.

    Thank you for any help you can add.

  •  11-20-2008, 8:51 AM 15414 in reply to 15408

    Re: Creating a Custom Document Library through a Feature.

    Here's a working example incase it helps :) ?

    Folder structure:

    MediaLibrary
             ------- ListTemplates
                              --------- MediaLibrary.xml
             ------- MediaLib
                              --------- schema.xml
             ------- feature.xml

    Feature.xml

    <?xml version="1.0" encoding="utf-8"?>
    <Feature Id="4C7D358C-A83A-406e-8291-7A232765DC76"
        Title="Media Library Template"
        Description="Media Document Library Template supporting the Media ContentType "
        Version="1.0.0.0"
        Scope="Site"
        Hidden="False"
        xmlns="http://schemas.microsoft.com/sharepoint/">
        <ElementManifests>
            <ElementManifest Location="ListTemplates\MediaLibrary.xml" />
        </ElementManifests>
    </Feature>

    MediaLibrary.xml

    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
        <ListTemplate
            Name="medialib"
            Type="1010051"
            BaseType="1"
            OnQuickLaunch="TRUE"
            SecurityBits="11"
            DisplayName="Media Library"
            Description="Stores pointers to media files and related information."
            Image="/_layouts/images/itdl.gif"
            DocumentTemplate="101" />
     
       <!--Site Columns-->

        <!-- Brand -->
        <Field ID="{D04701E0-D05C-4ab6-81E8-B0744AE1A478}"
            Name="CreativeLibBrand" DisplayName="Brand"
            Description="The brand that the media represents."
            Type="Text" MaxLength="150" Group="Creative Library Columns">
        </Field>

        <Field ID="{1A5FB106-3A27-4db3-B9D6-6CA4776EC4B7}"
            Name="CreativeLibCountry" DisplayName="Country"
            List="Lists/Countries" ShowField="Title" UnlimitedLengthInDocumentLibrary="FALSE"
            Group="Creative Library Columns" Type="Lookup">
        </Field>
      
        <!-- Narrative (Description) -->
        <Field ID="{31C0A4CC-2F88-49a0-AD94-717EE4145AEF}"
            Name="CreativeLibDesc" DisplayName="Narrative"
            Description="Description(Narrative) of the media."
            Type="Note" Group="Creative Library Columns" NumLines="6">
        </Field>

        <!-- Agency -->
        <Field ID="{F07A1329-0DF8-40a9-8065-D9558F399504}"
            Name="CreativeLibAgency" DisplayName="Agency"
            Description="The Agency responsible for the media."
            Type="Text" MaxLength="30" Group="Creative Library Columns">
        </Field>

        <!-- Creative Director -->
        <Field ID="{99288700-ACB5-4209-9138-0E1D9BACCF31}"
            Name="CreativeLibDirector" DisplayName="Creative Director"
            Description="Creative Director of media."
            Type="Text" MaxLength="30" Group="Creative Library Columns">
        </Field>

        <!-- Copy Writer -->
        <Field ID="{30CF91B1-7442-440d-B0A7-F7D329B29B57}"
            Name="CreativeLibCopyWriter" DisplayName="Copy Writer"
            Description="Copy Writer of media."
            Type="Text" MaxLength="30" Group="Creative Library Columns">
        </Field>

        <!-- Art Director -->
        <Field ID="{9576DD8E-027F-4566-A15B-CB268E0EA50D}"
            Name="CreativeLibArtDirector" DisplayName="Art Director"
            Description="Art Director of media."
            Type="Text" MaxLength="30" Group="Creative Library Columns">
        </Field>

        <!-- Date First Aired -->
        <Field ID="{2667B9BF-758F-46a8-9CC8-445A6C847DB0}"
            Name="CreativeLibDateAired" DisplayName="Date First Aired"
            Description="Date the media was first aired."
            Type="DateTime" Group="Creative Library Columns">
        </Field>
     
        <!-- Medium LookUp Field-->
        <Field ID="{8E675B4F-56B6-4f34-8156-449F3E706918}"
            Name="CreativeLibMedium" DisplayName="Media Type"
            List="Lists/Media Types" ShowField="Title" UnlimitedLengthInDocumentLibrary="FALSE"
            Group="Creative Library Columns" Type="Lookup">
        </Field>

        <!--Content Types-->
        <ContentType
          ID="0x0101001871F0F629724eaf88DB259DB28D6991"
          Group="Custom Content Types"
          Name="Media Item" Description="Creative Library Media.">
            <FieldRefs>
                <FieldRef ID="{D04701E0-D05C-4ab6-81E8-B0744AE1A478}"/>
                <FieldRef ID="{1A5FB106-3A27-4db3-B9D6-6CA4776EC4B7}"/>
                <FieldRef ID="{31C0A4CC-2F88-49a0-AD94-717EE4145AEF}"/>
                <FieldRef ID="{F07A1329-0DF8-40a9-8065-D9558F399504}"/>
                <FieldRef ID="{99288700-ACB5-4209-9138-0E1D9BACCF31}"/>
                <FieldRef ID="{30CF91B1-7442-440d-B0A7-F7D329B29B57}"/>
                <FieldRef ID="{9576DD8E-027F-4566-A15B-CB268E0EA50D}"/>
                <FieldRef ID="{2667B9BF-758F-46a8-9CC8-445A6C847DB0}"/>
                <FieldRef ID="{8E675B4F-56B6-4f34-8156-449F3E706918}"/>
            </FieldRefs>
        </ContentType>

    </Elements>

    Schema.xml

    <?xml version="1.0" encoding="utf-8"?>
    <List xmlns:ows="Microsoft SharePoint" Title="$Resources:shareddocuments_Title;" Direction="$Resources:Direction;" Url="Shared Documents" BaseType="1" EnableContentTypes="TRUE" >
      <MetaData>
        <ContentTypes>
          <ContentTypeRef ID="0x0101001871F0F629724eaf88DB259DB28D6991">
            <!--<Folder TargetName="Forms/Document" />-->
          </ContentTypeRef>
          <!--<ContentTypeRef ID="0x0120" />-->
        </ContentTypes>
        <Fields>
          <Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" ShowInNewForm="FALSE" ShowInFileDlg="FALSE" DisplayName="$Resources:core,Title;" Sealed="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title"><!-- _locID@DisplayName="camlid2" _locComment=" " -->
          </Field>
          <Field ID="{4b1bf6c6-4f39-45ac-acd5-16fe7a214e5e}" Type="Text" Name="TemplateUrl" DisplaceOnUpgrade="TRUE" DisplayName="$Resources:core,Template_Link;" XName="TemplateUrl" Filterable="TRUE" Sortable="TRUE" Hidden="TRUE" FromBaseType="TRUE" PITarget="mso-infoPathSolution" PIAttribute="href" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="TemplateUrl"><!-- _locID@DisplayName="camlidxdsol3" _locComment=" " -->
          </Field>
          <Field ID="{cd1ecb9f-dd4e-4f29-ab9e-e9ff40048d64}" Type="Text" Name="xd_ProgID" DisplaceOnUpgrade="TRUE" DisplayName="$Resources:core,Html_File_Link;" XName="ProgID" Filterable="TRUE" Sortable="TRUE" Hidden="TRUE" FromBaseType="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="xd_ProgID">
          </Field>
          <Field ID="{fbf29b2d-cae5-49aa-8e0a-29955b540122}" Type="Boolean" Group="_Hidden" Name="xd_Signature" DisplaceOnUpgrade="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="xd_Signature" DisplayName="$Resources:core,Xml_signed;" XName="{FBF29B2D-CAE5-49aa-8E0A-29955B540122}" Filterable="TRUE" Sortable="TRUE" Sealed="TRUE" Hidden="TRUE" FromBaseType="TRUE" ReadOnly="TRUE">
          </Field>
          <!-- Media Item Content Type -->
          <!-- Insert any new fields created in the Media Item Content Type-->
          <!-- Brand -->
          <Field ID="{D04701E0-D05C-4ab6-81E8-B0744AE1A478}" Name="CreativeLibBrand" DisplayName="Brand" Type="Text" Required="TRUE">
          </Field>

          <Field ID="{1A5FB106-3A27-4db3-B9D6-6CA4776EC4B7}" Name="CreativeLibCountry" DisplayName="Country" List="Lists/Countries" ShowField="Title" UnlimitedLengthInDocumentLibrary="FALSE" Group="Creative Library Columns" Type="Lookup" Required="TRUE">
          </Field>

          <!-- Description -->
          <Field ID="{31C0A4CC-2F88-49a0-AD94-717EE4145AEF}" Name="CreativeLibDesc" DisplayName="Narrative" Type="Note" NumLines="6" Required="TRUE">
          </Field>

          <!-- Agency -->
          <Field ID="{F07A1329-0DF8-40a9-8065-D9558F399504}" Name="CreativeLibAgency" DisplayName="Agency" Type="Text" >
          </Field>

          <!-- Creative Director -->
          <Field ID="{99288700-ACB5-4209-9138-0E1D9BACCF31}" Name="CreativeLibDirector" DisplayName="Creative Director" Type="Text" >
          </Field>

          <!-- Copy Writer -->
          <Field ID="{30CF91B1-7442-440d-B0A7-F7D329B29B57}" Name="CreativeLibCopyWriter" DisplayName="Copy Writer" Type="Text" >
          </Field>

          <!-- Art Director -->
          <Field ID="{9576DD8E-027F-4566-A15B-CB268E0EA50D}" Name="CreativeLibArtDirector" DisplayName="Art Director" Type="Text">
          </Field>

          <!-- Date First Aired -->
          <Field ID="{2667B9BF-758F-46a8-9CC8-445A6C847DB0}" Name="CreativeLibDateAired" DisplayName="Date First Aired" Type="DateTime">
          </Field>

          <!-- Medium LookUp Field-->
          <Field ID="{8E675B4F-56B6-4f34-8156-449F3E706918}" Name="CreativeLibMedium" DisplayName="Media Type" List="Lists/Media Types" ShowField="Title" UnlimitedLengthInDocumentLibrary="FALSE" Group="Creative Library Columns" Type="Lookup">
          </Field>
         
          <!-- End Media Item Content Type -->

          <Field ID="{e52012a0-51eb-4c0c-8dfb-9b8a0ebedcb6}" ReadOnly="TRUE" Type="Computed" Name="Combine" DisplaceOnUpgrade="TRUE" DisplayName="$Resources:core,Merge;" Filterable="FALSE" Sortable="FALSE" Hidden="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Combine"><!-- _locID@DisplayName="camlidxdsol1" _locComment=" " -->
            <FieldRefs>
              <FieldRef Name="FSObjType" Key="Primary" />
              <FieldRef Name="EncodedAbsUrl" />
              <FieldRef Name="TemplateUrl" />
            </FieldRefs>
            <DisplayPattern>
              <IfEqual>
                <Expr1>
                  <Field Name="FSObjType" />
                </Expr1>
                <Expr2>0</Expr2>
                <Then><HTML><![CDATA[<INPUT ID="chkCombine" TYPE="CHECKBOX" Title="$Resources:core,Merge;]]" HREF="]]></HTML>
                  <Field Name="EncodedAbsUrl" /><HTML><![CDATA[">]]></HTML><HTML><![CDATA[<INPUT ID="chkUrl" TYPE="HIDDEN" HREF="]]></HTML>
                  <Column Name="TemplateUrl" HTMLEncode="TRUE" /><HTML><![CDATA[">]]></HTML><HTML><![CDATA[<INPUT ID="chkProgID" TYPE="HIDDEN" HREF="]]></HTML>
                  <MapToControl><HTML>|</HTML>
                    <GetFileExtension>
                      <Column Name="TemplateUrl" HTMLEncode="TRUE" />
                    </GetFileExtension>
                  </MapToControl><HTML><![CDATA[">]]></HTML>
                </Then>
              </IfEqual>
            </DisplayPattern>
          </Field>
          <Field ID="{5d36727b-bcb2-47d2-a231-1f0bc63b7439}" ReadOnly="TRUE" Type="Computed" Name="RepairDocument" DisplaceOnUpgrade="TRUE" DisplayName="$Resources:core,Relink;" Filterable="FALSE" Sortable="FALSE" Hidden="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="RepairDocument"><!-- _locID@DisplayName="camlidxdsol2" _locComment=" " -->
            <FieldRefs>
              <FieldRef Name="FSObjType" Key="Primary" />
              <FieldRef Name="ID" />
            </FieldRefs>
            <DisplayPattern>
              <IfEqual>
                <Expr1>
                  <Field Name="FSObjType" />
                </Expr1>
                <Expr2>0</Expr2>
                <Then><HTML><![CDATA[<INPUT ID="chkRepair" TYPE="CHECKBOX" Title="$Resources:core,Relink;" docID="]]></HTML>
                  <Field Name="ID" /><HTML><![CDATA[">]]></HTML>
                </Then>
              </IfEqual>
            </DisplayPattern>
          </Field>
        </Fields>
        <Views></Views>
        <Forms></Forms>
        <DefaultDescription>$Resources:core,camlidDc5;</DefaultDescription>
      </MetaData>
    </List>


    Andrew Carter
    .Net & SharePoint
  •  11-20-2008, 9:51 AM 15416 in reply to 15414

    Re: Creating a Custom Document Library through a Feature.

    Thank you Andrew for your very quick response. I'm just about to test yours first to ensure it is working, then I hope to understand it and see why my document library not working.

    Looking at your schema, the <Views>and <Forms> are blank. I first though this is perhaps it should be, but then looking at the alert email I received it showed me

    <Views>... Removed for easy reading ...</Views>
    <Forms>... Removed for easy reading ...</Forms>

    Any chance you could show me what these are? Is it a direct copy from the Document Library schema or is some editing involved?

  •  11-20-2008, 1:56 PM 15429 in reply to 15414

    Re: Creating a Custom Document Library through a Feature.

    I've since added the standard DocumentLibrary Views and Forms in my schema. I'm still getting the File Not Found error.

    I've progressed a little further using the Sharepoint logs. Part of the problem seems to be that it couldn't find my Resource file. I've since added to my feature DefaultResourceFile="core". Although this has removed some of the errors, I'm still getting

     "File Not Found.   at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateListFromFormPost(String bstrUrl, String& pbstrGuid, String& pbstrNextUrl)
       at Microsoft.SharePoint.Library.SPRequest.CreateListFromFormPost(String bstrUrl, String& pbstrGuid, String& pbstrNextUrl)
       at Microsoft.SharePoint.SPListCollection.CreateListFromRpc(NameValueCollection queryString, Uri& nextUrl)
       at Microsoft.SharePoint.ApplicationPages.NewListPage.BtnOk_Click(Object sender, EventArgs args)
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    In the SharePoint Logs I'm getting the following:

    11/20/2008 12:23:11.98 w3wp.exe (0x11AC) 0x155C Windows SharePoint Services General 72lu High Cannot find doc C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\MediaLibrary\medialib\repair.aspx
    11/20/2008 12:23:11.98 w3wp.exe (0x11AC) 0x155C Windows SharePoint Services General 8gs8 High Failed to add list view and form pages for list "MediaLibrarywithResource" in web "http://fsa". hr = 0x80070002
    11/20/2008 12:23:11.98 w3wp.exe (0x11AC) 0x155C Windows SharePoint Services General 8z1y Medium Failed to create list "MediaLibrarywithResource" in web "http://fsa", HRESULT=0x80070002. List XML: ""
    11/20/2008 12:23:11.98 w3wp.exe (0x11AC) 0x155C Windows SharePoint Services Fields 88yg High Failed to instantiate list 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\MediaLibrary\medialib'
    11/20/2008 12:23:11.98 w3wp.exe (0x11AC) 0x155C Windows SharePoint Services General 8e2s Medium Unknown SPRequest error occurred. More information: 0x80070002
    11/20/2008 12:23:11.93 w3wp.exe (0x11AC) 0x155C Windows SharePoint Services General 75fe High Failed to determine definition for Feature with ID '92526409-de02-482d-a251-c2edc5a9ee9e'. Skipping this feature for element querying consideration.
    11/20/2008 12:23:11.93 w3wp.exe (0x11AC) 0x155C Windows SharePoint Services General 72kc Medium Failed to find generic XML file at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\xml\onet.xml", falling back to global site definition.
    11/20/2008 12:23:11.91 w3wp.exe (0x11AC) 0x155C Windows SharePoint Services General 75fe High Failed to determine definition for Feature with ID '92526409-de02-482d-a251-c2edc5a9ee9e'. Skipping this feature for element querying consideration.
    11/20/2008 12:23:11.91 w3wp.exe (0x11AC) 0x155C Windows SharePoint Services General 75fe High Failed to determine definition for Feature with ID '92526409-de02-482d-a251-c2edc5a9ee9e'. Skipping this feature for element querying consideration.
    11/20/2008 12:23:11.91 w3wp.exe (0x11AC) 0x155C CMS Publishing 8ztg Medium Got List Item Version, but item was null.
    11/20/2008 12:23:11.91 w3wp.exe (0x11AC) 0x155C Windows SharePoint Services Fields 88yf Medium Creating list "MediaLibrarywithResource" in web "http://fsa" at URL "/", (setuppath: "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\MediaLibrary\medialib")

    I'm still trying to find out what 92526409-de02-482d-a251-c2edc5a9e9e relates too.

    Andrew do you have any idea why I can't get the Media Library to work?

  •  11-21-2008, 8:22 AM 15443 in reply to 15429

    Re: Creating a Custom Document Library through a Feature.

    Hi there, please find below a full copy of the schema, i should have also put that the aspx files were excluded from my poast too (thought you may have them from copying the standard document library, sorry =o  ).

    Full Directory structure:

    Folder structure:

    MediaLibrary
             ------- ListTemplates
                              --------- MediaLibrary.xml
             ------- MediaLib
                              --------- schema.xml
                              --------- Repair.aspx
                              --------- Upload.aspx
                              --------- FileDlg.htm
                              --------- EditDlg.htm
             ------- feature.xml


    Schema.xml
    PM me you e-mail address and i'll send the full version over as its to long to post, that or you should be able to use the defualt entries from the document libray feature.


    Andrew Carter
    .Net & SharePoint
  •  11-25-2008, 9:40 AM 15555 in reply to 15443

    Re: Creating a Custom Document Library through a Feature.

    Hi,

     Sorry I haven't replied for some time. Caught up in other work stuff. Thank you for your help, I wasn't including the files at all. I finally understood everything after I used the SharePoint Extensions for Visual Studio 2008. I created a Documnet Library using the extensions template. Once I could see where everything should go, and how the XML relates to each other, I was able to solve my issue.

    Thank you again for your help.

  •  11-26-2008, 9:20 PM 15636 in reply to 15555

    Re: Creating a Custom Document Library through a Feature.

    Hi, guys. Got a question.
    I needed to have a very same list definition that out of the box XMLForm list definition provides. I created a list definition and gave it a type of "10001"(sharepoint uses 115) and BaseType="1" . Everything works fine except when I try to create a library out of it, I get a default Document Library template that has all the .ppt, .xls, .doc etc options in the drop-down for a default content type. I copied exactly the same files for schema.xml etc that XMLForm feature is using. Any ideas why it did not get pushed through?
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems