Tag Info

Hot answers tagged

2

You cannot update existing Content Type (or list) definitions by installing updated feature that contains updated definitions. You need to add custom code that is run when feature is activated and which updates existing content type and list. The new content type/list definition pair you can add using the same method you did for the first ones earlier - but ...


2

I'm actually fairly sure this isn't possible -- and the reason might seem kind of silly, but is a limitation of the architecture having to deal with content types: Forms (edit/view) are associated with a particular content type; so when you go to a list and edit an item, the first question SharePoint asks before it renders any form is 'what content type is ...


2

The following example demonstrates how to accomplish it via CSOM: /// <summary> /// Hide the content type from List /// </summary> /// <param name="ctx"></param> /// <param name="listTitle"></param> /// <param name="ctName">The name of content type to hide</param> private static void ...


2

You need to set uniqueContentTypeOrder on the root folder of the list. Check SP.Folder.uniqueContentTypeOrder property here at msdn. Even though you need to do it in JSOM or CSOM, I will share a server object model code which may help you in resolving this issue: using (SPSite site = new SPSite("http://aissp2013/sites/t1")) { SPWeb web = site.RootWeb; ...


1

oList.get_contentTypes() returns a collection and hence it needs to be iterated to get information about each content type. UPDATE var clientContext = new SP.ClientContext.get_current(); var oWebsite = clientContext.get_web(); var collList = oWebsite.get_lists(); clientContext.load(collList, 'Include(ContentTypes, Title)'); ...


1

Go to List Settings -> Click on Change new button order and default content type. You can control the order with Position from Top:



Only top voted, non community-wiki answers of a minimum length are eligible