A list definition defines a schema for a SharePoint list. It contains information on what views are being used, which columns and content types are being used, and other metadata information.

learn more… | top users | synonyms

9
votes
3answers
4k views

How to disable launch modal dialog in list definition schema.xml?

I have a sharepoint 2010 site template. The site template activates a feature that deploys several lists. Some lists need to open the new/edit/display forms in full page mode. Is there a way to ...
8
votes
4answers
526 views

Save metadata on this list as social tags

On the UI, for a document Library settings, under "Enterprise Metadata and Keywords Settings" there is an option to "Save metadata on this list as social tags" Is there a way to activate this, ...
6
votes
2answers
7k views

How can I export a schema.xml file for a list from a SharePoint site?

I've been troubleshooting my schema.xml file for a list definition and getting more and more frustrated. So I thought, "Hey, I'll just get it to look right in the UI and then export that and compare ...
6
votes
1answer
117 views

List Template showing the wrong image

I've created a list definition from a content type in Visual Studio 2010 for SharePoint 2010. They are based off a custom list. When I deploy locally, I see the correct image in View All Site Content ...
4
votes
3answers
665 views

What options are available to me to find lists that were created using a specific list definition?

I have many lists, some of which were created using a custom and now-obsolete list definition. I need a programmatic way of finding out which lists were created using that old definition. Currently ...
3
votes
2answers
5k views

Set “Allow management of content types?” set to “Yes” within a Content Type or List Definition

How do you set "Allow management of content types?" to "Yes" within a Content Type or List Definition?
3
votes
2answers
4k views

How can I provision a list with a calculated field?

I am trying to create some fields, a content type, a list definition and a list instance in Visual Studio. All of my fields are working, showing up in the list etc. except for calculated fields. What ...
3
votes
1answer
1k views

How to determine the List Template (SPListTemplate) that was used to create a list?

I am using the following code to create a custom list from a custom list definition. Is there a way, after the list is created to determine which definition it was created from? SPListTemplate ...
3
votes
3answers
110 views

Is a ContentType worthwhile/necessary in this situation?

I'm creating a custom List Definition. I've previously been told that I should create a ContentType, and a ListDefinition from that. But this seems to mean a lot of duplication in my project files. So ...
3
votes
3answers
2k views

Trying to hide the title column the sharepoint way

I am currently just messing around with defining lists via the elements.xml Content Type <?xml version="1.0" encoding="utf-8"?> <Elements ...
3
votes
2answers
2k views

error activate feature list template/instance in site definition

i've created a SiteDefiniton project and a Sharepoint ListDefinition project. In the SiteDefinition I created a listinstance of my template, but in deployment the activation of the ListInstanceFeture ...
3
votes
2answers
1k views

Issue adding description column to custom document library in VS2010

I want to add a description column to my List definiton. However when i do it the column does not show up on the EditForm dialog so that you can actually set the description. Can someone look at the ...
3
votes
2answers
2k views

How do I deploy custom list edit forms in the sandbox?

I'm creating a List Definition for use on 2007, 2010 (Sandboxed), and 2010 (unrestricted) that will need custom new and edit forms; unfortunately the Sandbox specifically excludes custom application ...
3
votes
1answer
95 views

Importing a list from one visual studio project to another

I have sp project (say project a) in visual studio that is supposed to deploy the sp solution to my website (say that its running at http://localhost:xxxx/). My goal would be to add the list ...
3
votes
3answers
2k views

How to modify width of standard dialog form sharepoint 2010

Please, help me! I need to modify width of standard dialog form for adding element into library. If I click to ribbon button for adding element, form opened with width=402px: <div ...
3
votes
1answer
483 views

Using part of date in CAML query

I want to create new view for my list. The list contains a column called Year, which is a number and contains, as name suggests, year. Eg.: 2012 2011 2010 2009 I would like create a view, where I ...
3
votes
3answers
1k views

Display an SPFieldUrlValue property from a BCS Model

I have a pretty simple BCS model: public Guid Id { get; set; } public SPFieldUrlValue Url { get; set; } public string Description { get; set; } public string Owner { get; set; } public DateTime ...
3
votes
0answers
511 views

Custom list defintion with OrderedList property [closed]

I've created a custom list in SharePoint 2010 from a custom content type (inherit from item) and I would like to give the users the option to order the items in this list - similar to how users can ...
2
votes
2answers
7k views

Add fields to New/Edit form with custom list definition (document library)

I'm using Visual Studio 2010's template "List Definition" to create a new list definition for a document library. Nothing fancy at all - I only want to add a couple of fields to the list and to the ...
2
votes
3answers
796 views

Generate ListDefinition from ListTemplate

Is there a way or tool to generate list-definition projects/features from an existing list template? (Sharepoint 2010)
2
votes
1answer
825 views

Composite unique indexes in Sharepoint 2010

I'm looking for something like Composite unique indexes in Sharepoint 2010. I have found that I can make some field in list unique. But how to make unique index composed from two or more cols in list? ...
2
votes
2answers
4k views

Programmatically creating a list

I have created a new list definition following the steps listed here: http://msdn.microsoft.com/en-us/library/gg276355.aspx I can create new lists using this definition in the browser with out any ...
2
votes
2answers
1k views

Changing site/list definitions post-production

There have been several questions asked on this site regarding the best way to provision sites and lists (definition schemas vs. templates vs. the object model vs. the web interface vs. provisioning ...
2
votes
1answer
228 views

Sync Disabled for Document Library created with custom list definition

In our project we are creating custom list definition and list instance based on that definition, as follows: Elements.XML in List Definition: <ListTemplate Name="MyListsDef" Type="10000" ...
2
votes
1answer
394 views

Change Add new Item Text

I've developed a ListTemplate via ListDefinition in SP 2010 using Visual Studio. Nearly everything works fine, but the Link at the bottom of my ListInstance is missing the Text "Add new Item". Is ...
2
votes
3answers
1k views

Disable certain list templates

We have a specific requirement, where we have to create dedicated site collection for hosting discussion boards. How we can disable all list and library templates and level only discussions, so users ...
2
votes
1answer
2k views

Updating list definition using features

I have a feature that deploys content types, a list definition and template that uses these content types and finally a list instance. This feature is already in production. Now we have a change ...
2
votes
3answers
5k views

Creating a document library list definition in visual studio 2010

In visual studio 2010 I create a new empty sharepoint project. I then add a new list definition selected document library as the type of list. It generates the def and I then change the type in the ...
2
votes
1answer
143 views

Hiding Fields in Forms in List Instances Based on List Definitions

I have a list definition that I've created in XML, and multiple list instances based on that definition. On the base list definition I am hiding certain fields from the new item form in the list ...
2
votes
1answer
30 views

Is there a relative URL for files hosted in the TEMPLATE\FEATURES directory?

Is there a relative URL for files hosted in the TEMPLATE\FEATURES directory? What I'm trying to do is re-provision data every time my feature is activated without deleting the SPList. The idea is to ...
2
votes
1answer
509 views

Hide custom list definition?

I have a custom list definition, created in visual studio. We no longer want users to create lists from it. We have existing lists created from it, therefore deactivating the solution is not an ...
2
votes
1answer
1k views

create custom sharepoint new form in visual studio

I am creating a custom list inside a feature receiver. I would like to create a custom New Form for my list. So, the list is not created via List definition. Can anyone guide me how to create the ...
2
votes
1answer
410 views

How to Deploy Custom list definition in Central admin so that it appears in all WebApps I create?

I have created a custom list definition with my custom fields Now I want to deploy my feature in farm level i.e 1 When I deploy my solution in central admin as a farm solution that particular list ...
2
votes
1answer
661 views

Custom list definition shows title even if it is not declared in schema

I created an own list definition with list instance in the project. I described all the fields in the schema which should be shown. ANd it is ok, after deploying when i visit the list it show all mine ...
2
votes
1answer
2k views

How to handle 'Feature for list template is not installed in this farm' for custom lists

I have a feature in which I have a custom ListDefinition. Within the definition, I also have a ListInstance based off of the definition. When installing and activating the feature, these lists are ...
2
votes
2answers
1k views

List Schema : Title Field ID

When creating custom List definitions, what should the ID value of the "Title" field be? At one point I was told I should be using the OOTB ID (fa564e0f-0c70-4ab9-b863-0177e6ddd247) as it caused ...
2
votes
1answer
534 views

List instance not working after solution retraction

I have a project with a Content Type A list definition based on the Content Type A list instance When I deploy this solution, it all works fine. To my knowledge, when this solution is retracted, ...
2
votes
2answers
3k views

Getting an existing list definition in sharepoint 2010

I have created a list in sharepoint 2010 and want to somehow export the list definition for use in a feature in visual studio 2010. What is the best approach to getting the list definition?
2
votes
2answers
40 views

Why do we use list definition? When we need to use site definition in SharePoint?

I have a question for that need know absolution from this invoke. why do we use list definition? when does useful for site definition in SharePoint?
2
votes
1answer
260 views

Add content type from sandboxed solution to list definition (farm solution) does not work

I'm using a sandboxed solution from a 3rd party vendor which contains some site columns and a site content type. I want to add this content type to my document library definition in CAML. But when I ...
2
votes
1answer
494 views

How to create List Definition based on Wiki Page Library in Visual Studio 2010

While creating Wiki Page Library from the browser (Site Actions->More Options->Wiki Page Library) is easy, doing it form Visual Studio not so much. When I create new ListDefinition in VS2010 I use ...
2
votes
2answers
494 views

How to make Add new Item link to navigate to Custom Form

I have made Custom Content Type, and List Definition from that Content Type. What I'm trying to do now, is create custom display/edit/add forms for List Item, and when user clicks on Add New Item, ...
2
votes
1answer
2k views

Error occurred in deployment step 'Activate Features': Could not find any recognizable digits

Error occurred in deployment step 'Activate Features': Could not find any recognizable digits. Dos anyone know what this error message means? I'm trying to deploy a feature containing some, content ...
2
votes
0answers
1k views

Pagination and group by for Custom views created using list definition not working

I created a list using the list definition + list instance from VS 2010. I also created the list views for the list. When I add Group by and paging properties for custom views other than All Items ...
2
votes
0answers
500 views

ListInstance not firing all item event receivers [closed]

I have a feature that defines a number of list instances to provision whenever a new site is created using a particular site definition. The list template for one of these instances has an item event ...
1
vote
1answer
6k views

Custom list definition - fields in Elements.xml and Schema.xml

I'm creating a custom list definition in SharePoint 2010 by following this article. The tutorial is OK and it works. There is a thing that I don't understand though. Why do I need to insert the ...
1
vote
1answer
4k views

List Definition and List Instance in SharePoint 2010

What is List Definition and List Instance in SharePoint 2010?
1
vote
2answers
404 views

Best practices for updating list template schema files in SharePoint

I have a requirement to update the schema files of a list template which modifies the options available to the fields. But, when I am updating the schema file the options for the already defined ...
1
vote
2answers
396 views

Custom list definition using OOB Site column causing problem

I have a custom list definition where i want to use the OOB URL site column plus a site column that i created in another list definition. When i do it and try to display the All Items view it says it ...
1
vote
2answers
367 views

Limiting List Permissions Programmatically

Scenario: When a User (let say Controller 1) creates a site using a site definition, "which already has a Custom List definition in it and different other things(like lists, webparts)" Custom List: ...