Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a List definition with following files

Feature.xml

<?xml version="1.0" encoding="utf-8"?>
<Feature Id="GUID" 
    Title="abc"
    Description="mmmmmmm."
    Version="1.0.0.0"
    Scope="Web"
    Hidden="FALSE"
    DefaultResourceFile="core"    
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
        <ElementManifest Location="oooo.xml" />
        <ElementManifest Location="ooooInstance.xml" />
    </ElementManifests>
</Feature>

oooo.xml

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <ListTemplate
        Name="oooo"
        Type="11021"
        BaseType="1"
        OnQuickLaunch="FALSE"
        SecurityBits="11"
        Sequence="110"
        DisplayName="$Resources:ListFeatures,ListDisplayName;"
        Description="$Resources:ListFeatures,ListDescription;"
        Image="/_layouts/images/pp.gif" />
</Elements>

ooooInstance.xml

<?xml version="1.0" encoding="utf-8" ?> 
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 
<ListInstance 
    FeatureId="GUID"
    Id="11022"
    OnQuickLaunch ="FALSE"
    TemplateType="11021"
    Title="$Resources:ListFeatures,ListTitle;"
    Url="$Resources:ListFeatures,ListURL;" >
</ListInstance>
</Elements> 

Now My question is, I want a new version of a list with an additional column

- What things do I must have to change, If I want to make another List definition for a list with same Name and it will be removing the current List.

- What ooooInstance.xml File doing here, as Before I used to have a feature and an element file for a list definition.

  • I just added a Field, Do I need to change anything in Scheme.xml
share|improve this question
    
If I just change Version number in Feature and GUID, will it be enough ? as its the same list but with an additional column now –  Muhammad Raja Jul 25 '12 at 9:14

1 Answer 1

up vote 0 down vote accepted

Just created another list definition with different GUID ids and definitely a different name otherwise there will be a conflict.

Make sure you don't change default field's GUIDs tho, if you need more help just leave a comment and I will put more explanation.

Hope it helps if someone else came across same problem :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.