I have a site on which I have unplaced and columns in a content type, 'folder'. Now, I want to add this content type to a document library, but I do not have the option of adding it to the document library settings - & gt; Add to existing site content types I'm not seeing "Folder content type" in the Groups drop-down menu Additionally, if I move the content type to another group that appears in this drop-down, then it is still Does not even appear. Do I have to do something to choose an option to choose for this content type, which content type group I can use for my document library or a site?
Thank you very much
If you have created your content type and published it Has been enabled for / SharePoint, so it should be available for you to add to the document library. Just make sure your document is configured to support library content types.
In the Advanced Settings section of the Document Library Settings, under You can use a console application (referee) to add content types to a list on your site. It also gives you useful messages about the current situation. Class program {static zero main (string [] ARG) {(SPS ite site select = new sps ite ("http: // YOUR_SPSITE")) ({SPWeb site = siteCollection.OpenWeb (< ) {// Get a content type. SPContentType ct = site.AvailableContentTypes ["YOUR_CONTENT_NAME"]; // content type was found. (Ct! = Null) / / Get list. {SPList list = site.Listists [ Try "YOUR_DOCUMENT_LIBRARY_NAME"]; // Exception if not present. // Make sure the list accepts content types. List.ContentTypesEnabled = true; // Content publishes Add list.If (List.IsContentTypeAllowed (ct)) Console.WriteLine ("{0} content type {1} list", ct.Name, list.Title is not allowed on; and if (List ContentTypes [ Ct.Name]! = Null console. WrightLine ("The content type name {0} is already in use on {1} list", ct.Name, list.Title); else list.ContentTypes.Add (Ct );} Hold (before argument expression) // No list has been found. {Console.WriteLine ("The list does not exist.");} Else // No content type found Console.light line ("The type of content Available in this site Dh is not. "); }} Console. Type ("\ nPress ENTER to continue ..."); Console.ReadLine (); }} Yes , under the
Allow content type management? Continue then as you were Settings - & gt; Add to existing site content type.
Comments
Post a Comment