.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Asad Ali
Fauzul Azmi
Post New Web Links

Listformwebpart misbehaving for folder-based content types

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :SharePoint
 

I created a number of folder content types, adding several metadata fields to the default content type.  I then created multiple document libraries that use those content types (as well as custom document content types).  I did not customize any of the forms.  All was well.  I then saved my site as a template, and created some new sites from that template.

Now weird stuff started to happen.  For one of my content types, the "new" form lost the custom metadata fields.  When making a new folder of this type, the form looks the same as the new form for a vanilla folder.  But once it is created, both the "edit" and "display" forms displayed all the fields correctly.

For another content type, I got the opposite behavior.  The "new" form shows all the custom metadata fields, but the "edit" form only shows the vanilla folder fields.  The "Display" form is fine.  I can even pull up the Display form, verify that all the expected fields are there, click the Edit button, and watch the form shrink to the reduced-field size.

It is as if the listformwebpart is selectively failing to acknowledge that the content type it is dealing with is anything other than Folder.

To summarize:

More Related Resource Links

SharePoint Tutorial - Content Types

  
SharePoint content types provide users with a way to manage and organize content in a more meaningful way. It's a reusable of settings you want to apply to a particular type of document in a library or item in a list.

Content Types in MOSS 2007

  
In this article I will try to describe the one of the best feature in Microsoft office Share Point 2007 called Content Types.

Content types are simply collection of contents.Each content in a Content type can have different settings.Basically it is a reusable collection of settings which you want to apply to a particular category of contents.

Unique content within master page based on conditions met

  

 Hi all-

I would like to present users with unique content based on certain conditions being met as they land on the home page (default.aspx).  The condition logic will be in the VB code behind Page Load event. The content will go in a content placeholder as specificed from the master page. 

However, the content change wouldn't be something small (ie making a panel or label visible or not) but rather it will be different HTML,  Divs and databound gridview content.  The HTML content will be stored in the database.

Can someone point me in the right direction for best practices on how to accomplish this?

Thanks!


Office Apps: Integrate VSTO with SharePoint Content Types

  

See how to build a document-level Visual Studio Tools for Office customization and integrate it with a content type in SharePoint.

Steve Fox

MSDN Magazine May 2008


Content deployment: pages not based on a page layout

  
Is it possible to use content deplyoment feature when pages (in page library) are not based on a Page Layout?

Quick Note: Create Custom Content Types in SharePoint 2010

  
Learn how to create a custom content type. Then you add two fields to the content type: a new text field and a field that already exists in web site.

Quick Note: Create Lists with Custom Content Types in SharePoint 2010

  
Learn how to create a list in SharePoint Server 2010 and associate it with a new content type. Next, you disassociate the list from the content type and then delete the list.

Video: What are SharePoint 2010 Content Types?

  
This video provides an overview of working with Content Types programmatically. (Length: 2:59)

Video: Programming with SharePoint 2010 Content Types

  
This video demonstrates how there are certain types of things you can do with Content Types programmatically that are not achievable with the UI. (Length: 5:33)

Video: External Content Types and Business Connectivity Services for SharePoint 2010

  
This video discusses the concept of external content types for Business Connectivity Services. (Length: 1:34)

Best Practices for Content Types in SharePoint Server 2007 and Windows SharePoint Services 3.0

  
Learn best practices to develop, deploy, and manage custom content types, as well as scenarios for making updates to existing content types in lists.

Add new content types to multiple libraries

  

We use MOSS for document management and content types for document types (i.e. specification, quote, PO etc.)).  We would like to add additional content types to our libraries.  I was hoping to find a tool that would help me to propagate these new content types ad I am not a programmer.

 

 


Content Types

  
Please could someone enlighten me a little bit on what content types are and how they are used?

Show folder content in a ListBox

  
Hi. I am close to going crazy here :) I have a small app and I want people to be able to open some files from within it. All I want is a small control that shows me the content of a specific folder on the HDD. My current approach includes a ListBox which should be filled with the documents of that folder. However I have (even after hours of googling and binging^^) absolutely no idea how to get them in there. I hoped that you could databind your ListBox to the file system, but this does not seem to be possible. Do I have to fill it via c# code? If so, how?   Any help would be greatly appreciated.  

Is it possible to move documents to folder based on metadata by workflow?

  
We have a document library, which have several folders. We need a process so that documents are stored to the right place based on metadatas. Is this possible? Any better method for this? 1. User uploads a document and defines it as a "personnel" document in the metadata field. 2. Workflow(or another method) moves the document automatically under Folder "Personnel".Kenny_I

Files in document libary not picking up the correct content types

  
Hi, I have a document libary where I have 10 InfoPath content types attached. For eg: Type1, Type2 etc... Type10. In this doc lib, I have a folder for each cutomer, and inside each of those folders, I have a file of each Content type (".xml"). I am creating these Folders and files programatically. The problem is that, the files are not picking up its content types. Every file (.xml), when uploaded, its content type is "Document" which is the default content type. Earlier it used to pickup the correct content types. What could be wrong?

Files in document libary not picking up the correct content types

  
Hi, I have a document libary where I have 10 InfoPath content types attached. For eg: Type1, Type2 etc... Type10. In this doc lib, I have a folder for each cutomer, and inside each of those folders, I have a file of each Content type (".xml"). I am creating these Folders and files programatically. The problem is that, the files are not picking up its content types. Every file (.xml), when uploaded, its content type is "Document" which is the default content type. Earlier it used to pickup the correct content types. What could be wrong?
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend