SharePoint 2013 Folder Content Types

Hi,
In SP2013 I have library with a default content type (IT Library Content Type) that I want to change when a file is placed in a particular folder in this library.
The default content type order for this folder has been changed to a different content type 'Issues' and should be the only content type shown when the edit page is presented. However, when a file is added to this folder, a Content Type selection
listbox is presented showing 'It Library Content Type' as the default selection with the 'Issues' content type available for selection.
Desired behavior is to have 'Issues' content type columns presented, with no content type selections seen, when the Edit Page is shown.
Thanks

Hi,
As you said about Folder content type in SharePoint, I supposed that you were talking about Document Set content type.
If I misunderstood, please feel free to correct me.
If that is the case, the issue is by design that the default content type will be available when uploading or editing documents inside the document set even though the content type is not added in the allowed content types in Document Set settings. And the
default content type of the library will be set the default selection when editing or uploading documents inside the document set.
As a workaround, I recommend to set the allowed content type as the default content type in the document library.
Best regards.
Thanks
Victoria Xia
TechNet Community Support

Similar Messages

  • SharePoint 2013 Custom Content Type with Site Column custom validations

    Hello,
    Can somebody please suggest me how I can create custom content type with site columns with custom validation to site columns programmatically?
    Thanks,
    Praveen Kumar Padmakaran

    Hi,
    From your description, my understanding is that you want to create content type with site column with validation.
    You could create a site column, and add some validation to the site column. After you could create a custom content type, please add the site column with validation to the content type. Please refer
    to this code below:
    static void Main(string[] args)
    // replace your url
    using (SPSite site = new SPSite("http://sp/sites/sp2013"))
    using (SPWeb web = site.OpenWeb())
    //define the type of the field
    SPFieldType type = SPFieldType.Number;
    // create a site column
    SPField field = CreateSiteColumn(web, "newTest", type, "");
    // add custom formula for the field
    SPFieldNumber fieldNumber = web.Fields.GetField("newTest") as SPFieldNumber;
    fieldNumber.ValidationFormula = "=[newTest]>5";
    fieldNumber.ValidationMessage = ">5";
    fieldNumber.Update();
    SPContentTypeId parentItemCTypeId = web.ContentTypes[0].Id;
    // create custom content type
    SPContentType contentType = CreateSiteContentType(web, "newContent", parentItemCTypeId, "Custom Content Types");
    // add the site column to the content type
    AddFieldToContentType(web, contentType, field);
    // add fiedl to contenttype
    public static void AddFieldToContentType(SPWeb web, SPContentType contentType, SPField field)
    if (contentType == null) return;
    if (contentType.Fields.ContainsField(field.Title)) return;
    SPFieldLink fieldLink = new SPFieldLink(field);
    contentType.FieldLinks.Add(fieldLink);
    contentType.Update();
    // create a custom content type
    public static SPContentType CreateSiteContentType(SPWeb web, string contentTypeName,SPContentTypeId parentItemCTypeId, string group)
    if (web.AvailableContentTypes[contentTypeName] == null)
    SPContentType itemCType = web.AvailableContentTypes[parentItemCTypeId];
    SPContentType contentType =
    new SPContentType(itemCType, web.ContentTypes, contentTypeName) { Group = @group };
    web.ContentTypes.Add(contentType);
    contentType.Update();
    return contentType;
    return web.ContentTypes[contentTypeName];
    // create a site column
    public static SPField CreateSiteColumn(SPWeb web, string displayName,SPFieldType fieldType, string groupDescriptor)
    if (!web.Fields.ContainsField(displayName))
    string fieldName = web.Fields.Add(displayName, fieldType, false);
    SPField field = web.Fields.GetFieldByInternalName(fieldName);
    field.Group = groupDescriptor;
    field.Update();
    return field;
    return web.Fields[displayName];
    You could refer to these articles:
    C# code to create Site Column, Content Type, and add fields to Content Type
    http://spshare.blogspot.jp/2013/10/c-code-to-create-site-column-content.html
    How to do custom validation for site column in SharePoint
    http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-do-custom-validation-for-site-column-in-sharepoint/
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • Filter SharePoint 2010 Ent. content types based AD Security Group

    We are trying to use SharePoint as a records management system. I have several site collections (Team Site at the root of each site) and my plan is to setup one site collection as a content type hub. The content type hub would then distribute all of the
    content types to my other site collections. Since I may have 70 different content types I want to filter what each user can see based on AD Security Groups (the SG matches the department the employee is in). This way they can only choose the content type that
    applies to their department and it won't be so confusing. I'll then apply retention policies based on content type. I know that I can apply retention policies based on the document library but I want the users to be able to organize their records however they
    want to.
    Am I taking the wrong approach? Is this possible?

     
    Hi,
    As far as I know, we can define the Permission Set on a content type. In this way, you can control which users or group can change or access which content types.
    For more information about SharePoint security and content type, see
    http://blog.contentmanagementconnection.com/Home/21510
    Thanks,
    Rock Wang
    Rock Wang TechNet Community Support

  • "could not save list changes to the server" while creating a new form in SharePoint Designer - custom content type

    i am getting "could not save list changes to the server" while creating a new form in SharePoint Designer.
    Actually the list was created with a custom content type. When i try to create a new form from the custom content type, it fails.
    However, when i try to create a form using item content type, it creates a form successfully.
    Could you please let me know hte workaroud for this.
    Tnx

    Hello,
    This link may be help you to create custom form using content types:
    http://blog.splibrarian.com/2011/03/21/using-content-types-to-modify-the-newform-aspx-and-editform-aspx-pages/
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help <br/>(On vacation from 16th Oct to 28th Oct 2014)

  • Sharepoint 2013 Timeout content

    Hi,
    My webpart page after timeout and clear all content  after 100 seconds.
    SPSecurity.RunWithElevatedPrivileges(delegate()
                        using (SPSite site = new SPSite(siteurl))
                            using (SPWeb theWeb = site.OpenWeb(weburl))
                                System.Threading.Thread.Sleep(120000);
                                if (HttpContext.Current == null)
                                    HttpRequest request = new HttpRequest("", SPContext.Current.Web.Url, "");
                                    HttpContext.Current = new HttpContext(request, new HttpResponse(new StringWriter()));
                                    HttpContext.Current.Items["HttpHandlerSPWeb"] = theWeb;
                                HttpContext.Current.Response.Redirect(currenturl); //can not redirect 
    page cannot redirect. 
    Webpart Page  this content is just staying.
    (White Page)  
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
    <BODY></BODY></HTML
    please help

    Hi,
    To handle a long operation in SharePoint, we can take use of SPLongOperation:
    http://www.ashokraja.me/tips/Handling-Request-Timeout-Error-in-SharePoint-while-executing-a-long-running-process
    Or we can increase the Execution Timeout as below:
    http://geekswithblogs.net/DennisBottjer/archive/2009/04/13/increase-sharepoint-execution-timeout.aspx
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Hosting SharePoint 2013 and content separation (Windows Server 2012)

    I have a windows 2012 server which hosts a ASP.NET 4.5 MVC website.
    I am interested in installing SharePoint 2013 on the same standalone server (which is a virtual cloud server, and easily scalable). I would like to be able to create separate instances of sharepoint for each of my customers (around 10), and provide them
    with a custom URL ie. customer.abc.com (where abc.com is my domain). These sites will be created programmatically when a user signs us to my site (they only require basic SharePoint functionality, i.e. the creation of team sites, notifications etc.)
    So:
    1) Can I install SharePoint 2013 at no extra cost on windows server 2012? (what are the limitations)
    2) Is it possible to create separate instances of sharepoint 2013 (in terms of config and content DB's)
    3) I'm sure there are many but what are some other considerations

    1) With SharePoint Foundation, SharePoint itself does not cost anything, but you must purchase User CALs for employees of your company, and User CALs for non-employees or a Windows External Connector license.
    2) No, you need to use multi-tenancy instead - http://www.harbar.net/articles/sp2010mt1.aspx
    Note that you must have Active Directory in this environment and the Server 2012 VM you currently have must be joined to the Active Directory domain.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to make SharePoint 2013 convert License type in PowerShell?

    How create script for passing Product Key for converting farm license type for Sharepoint 2013 like it is describied below:
    http://macslui.blogspot.com/2013/02/sharepoint-2010-convert-license-type.html

    How create script for passing Product Key for converting farm license type for Sharepoint 2013 like it is describied below:
    http://macslui.blogspot.com/2013/02/sharepoint-2010-convert-license-type.html
    All of the methods for licensing are marked internal, so without reflection you wouldn't be able to set the license via PowerShell.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Sharepoint 2013 - WSS content LOG file very very big

    Hi there.
    Sharepoint 2013 with latest updates.
    WSS CONTENT database size is cca 110GB, LOG FILE is 90GB.
    Even if we did FULL backup of databes that does not decrease LOG file size.
    Any hints how to lower the size of LOG data file?
    With best regards
    bostjanc

    Hi Bostjan,
    I wonder whether the issue can be resolved by shrinking log file.
    Shrinking data files recovers space by moving pages of data from the end of the file to unoccupied space closer to the front of the file. When enough free space is created at the end of the file, data pages at end of the file can deallocated and returned
    to the file system.
    Here is the reference for Shrink a File in SQL 2012 for your convenience:
    https://technet.microsoft.com/en-us/library/ms190757(v=sql.110).aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Uploading multiple documents into sharepoint list item with REST in sharepoint 2013 using content editor web part :

    hi ,
    i am trying to upload multiple document files into sharepoint list item. I followed below link for implementaion.
    http://techfindings-prem.blogspot.in/search/label/jquery.multifilejs
    It was working for sharepoint hosted app.
     This complete code is written within content edito web part.
    It was working when i was in root site collection with below change (hard coded the root level url) in code in "UploadFile" function.
    var scriptbase = "http://servername" + "/_layouts/15/";
                console.log(' File size:' + bytes.length);
                $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    But the issue came in picture when i was working with the other site collection instead of root one. The url was like below.
    "http://servername/sites/cpg/". This time i need to be there within "cpg" site collection. 
    Now if i hard code the url as i did above my code gets break here while come to below line
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
    I am getting error when i used below code:
    var scriptbase = "http://servername" + "/_layouts/15/";
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    Please hekp in this case. This complete code is written within content edito web part. 
    Regards:
    Sanjay Joshi

    Hi,
    According to your post, my understanding is that you have an issue about upload multiple documents files into library vai REST API.
    As you have said, you have used the hard code url in your code.
    How about use the _spPageContextInfo.webAbsoluteUrl method to get the url?
    I have used this method to get the url, then use the code in the article you have pasted within a content editor web part to upload the files.
    You can replace the hard code url with the _spPageContextInfo.webAbsoluteUrl method, then check whether it works.
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

  • Sharepoint 2013 App Content Blocked

    Working to get apps working correctly in our on prem sharepoint deployment. Seems like I have everything working correctly but... I keep getting the error message below when I go to access an app. From what I've read I believe its something with how I've
    entered the DNS CNAME for the apps (sub) domain but no matter what I try I can't figure it out. Any suggestions would be appreciated. 

    If I'm reading your response right, then the answer is no.  Here's the problem.  YOur regular SharePoint site and the wildcard cert you normally use is for servicebrands.net.  But your Apps domain is a subdomain apps.servicebrands.net.  The
    SSL cert for servicebrands.net is not valid for the subdomain Apps in servicebrands.net.  For that you would need an SSL cert specifically for *.apps.servicebrands.net.  if you were going to any web page in apps.servicebrands.net the address would
    be something.apps.servicebrands.net so *.servicebrands.net isn't a valid SSL cert.  So if SUB is a sitename (sub.serviceapps.net) in your example above, then yes the cert would work.  but not for sub.apps.serviceapps.net.  You need a different
    SSL cert if you use a full subdomain.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Integrating OneNote with Sharepoint 2013 - Custom document template, Change Content type, Checkout settings

    My client is migrating to SharePoint 2013 and the team uses OneNote Task list to track the project checklist. While I am successful extending the document template to support OneNote, still have some mysteries to solve as listed below:
    I am exploring Sharepoint 2013 and have tried to explain my problem clearly. If the information provided below is not clear enoug, let me know.
    1. Client has defined custom content type for all the documents in a library. I noticed OneNote comes with a Content type as "Folder". Is it possible to edit / modify the OneNote metadata to accommodate the predefined content types?
    2. In a library, I would like to defined multiple OneNote templates - Meeting, Task List, etc. I followed this article to create OneNote template for a library. Is is possible to edit the template and have "Meeting template" as default?
    3. A library can have multiple document types - word, excel, presentation, OneNote. In order for OneNote sync to work, below settings are mandatory (correct me if wrong):
            a. Checkout required should be set to "No"
            b. No versioning should be set
    My client's governance rule states "Checkout" is mandatory. How can I have a library to support OneNote with Checkout option enabled.
    Thanks in advance!

    Hi TMUser,
    regarding your questions:
    1. One note is based on folder not content type, so by design it is different items. but i heard you can have a look up for this, you may try to change my onenote notebook folder content type so that it allows for additional metadata columns. this way, the
    onenone notebook can be handled just like other office documents. for more detail you may try from this example: http://www.sharepointcowbell.com/2013/01/onenote-and-metadata-in-sharepointpart.html
    2. for onenote products, you may ask at onenote forum for more detail, http://support.microsoft.com/ask-community/office/onenote-2013/,
    we can help for general discussion regarding this. you may take a look at this article, it mentioned about set template as default: http://blogs.msdn.com/b/onenotetips/archive/2008/05/21/templates-in-onenote.aspx
    3. for this question, you may check this kb, http://support.microsoft.com/kb/2675731/en-us, i
    think it is by design, because onenote and other office are different, onenote is use shared, if we put checked out, then it will be set the limitation to only exclusive user.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Changing the Site URL of a Sharepoint site changes the content type order

    Description
    Changing the Site URL of a Sharepoint site changes the content type order of all lists that
    * contain folder content types
    * and have a custom content type order
    * where a folder content type is the first content type in order.
    Reproducible behaviour
    1. Create a Team Site in Sharepoint
    2. Create a Task List "Test" on the Team Site
    3. Go to List Settings
    4. The Content Type order is by default
        a. Task
        b. Summary Task
    5. Change the Content Type Order to
        a. Summary Task
        b. Task
    6. Go To Site Settings "Title, description and icon"
    7. Change the Site Url
    8. Go To List "Test" List Settings
    9. The Content Type order now is
        a. Task
        b. Summary Task
    10. Select "Change New button order and default content type"
    11. Here, the Content Type order still is
        a. Summary Task
        b. Task
    Is this a bug? Has anyone noticed this behaviour before?
    Kind Regards,
    Joachim

    Hi Joachim,
    You are not missing something or doing something wrong. i Hope :). This behavior is reproductible.
    The granularity of change is better by Powershell. But by the interface is most user-friendly.
    Maybe that's the reason of this behavior.
    Gilles Martinez
    Twitter
    Blog
    Please mark as helpful/answer if this resolved your post

  • A content type failed to be syndicated: Microsoft.SharePoint.SPContentTypeReadOnlyException

    I've got a content type hub in my SharePoint 2010 environment. I've updated a content type on the hub and now when the timer job for the content type hub runs I'm getting a lot of messages like this one:
    A content type failed to be syndicated: Microsoft.SharePoint.SPContentTypeReadOnlyException: The content type "Site Request"
    at "/sites/sitename" is read only.   
    at Microsoft.SharePoint.SPContentType.Update(Boolean updateChildren, Boolean ignoreSealedOrReadOnly, Boolean throwOnSealedOrReadOnly, IList`1 exceptions)   
    at Microsoft.SharePoint.SPContentType.Update()   
    at Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.SubscriberImport.UnshareContentType(SPContentType contentType, Boolean previousReadOnlyValue)   
    at Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.SubscriberImport.UnshareContentType(String contentTypeIdString)   
    at Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.Subscriber.SynchronizeSite(TaxonomySession session, TermStore termStore, MetadataWebServiceApplicationProxy proxy, SPSite site, Guid rawPartitionId, DownloadedHubData downloadedHubData, SyndicationResult
    result, SiteStatus& siteStatus)
    There haven't been any updates made to the content types for quite a while. So this issue might have occurred since the latest SharePoint updates were installed.
    To me it sounds like this could be a permission issue but I can't see an issue with the permissions.

    Hi Pieter,
    Thanks for the sharing the information.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Good books on Business solution or content management by SharePoint 2013 OOB Apps or functionality along with examples

    Hi,
    Any help?
    Thanks
    srabon

    Hi,
    I recommend you the book named Beginning SharePoint 2013: Building Business Solutions:
    http://www.amazon.com/Beginning-SharePoint-2013-Building-Solutions/dp/1118495896
    Practical SharePoint 2013 Enterprise Content Management:
    http://www.amazon.com/Practical-SharePoint-Enterprise-Content-Management/dp/1430261692
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Workflow Status column for new content type

    Hi,
    Initially I had a document library and several workflows associated with it. After that I created a new content type inheriting Folder content type. My existing workflows could be started and work fine with any item of this new content type except anything
    related to the workflow status column, such as "Automatically update workflow status to the current stage name", or workflow action "Set workflow status". If I use the OOTB Folder content type, everything's fine. But I need custom fields
    for folder as well.
    The workflows can be started then it seems unreasonable that they are not associated with the items of the new content type, considering I set my new content type to be the child of the existing Folder content type. So why any item under this new content
    type does not have the workflow status column? I've tried removing the workflow from the list and publishing back using SPD without success.
    I also notice that when you associate a new content type to a document library/list which has some custom columns, you cannot edit those columns to be used in the new content type. You need to delete those columns and recreate them, then the option "Add
    to all content types" is there. Is this expected design?
    Thanks

    Hi,
    According to your post, an error occurred when you created a custom Edit form for new content type.
    We can do as follows:
    1.Add the MyNameSpace.MyNewEditPage dll file into GAC(C:\Windows\assembly).
    2. Execute the iisreset command.
    We can create a new content type using visual studio 2012/2013.
    http://www.sharepoint-journey.com/sharepoint-list-content-types-and-site-columns.html
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • FI Archiving - System error: Customer/vendor line item not on OI basis

    While archiving FI Documetns using object FI_Documnt, I am getting message System error: Customer/vendor line item not on OI basis for few non archivable documents. Is it like these also open items and can not be able to archive them. Or what is the

  • Error in import ABAP while installing ECC6.0 on I5/os

    Hi All, I am installaing ECC 6.0 SR3 on i5. I failed first time in ABAP with 3 jobs. Than  i restarted the installation and than SAPVIEW failed and all the rest 27 completed. As per the log several tables are missing in the database which should be t

  • Accessing Java Resource in a Java class

    How does one go about accessing a java resource object from a java class loaded into the database? I created a.properties file and loaded it using loadjava. Next I wrote a class in which I try to load the resource: import java.io.*; import java.util.

  • What's with the diagonal line through Finder's video preview thumbnail?

    I recently upgraded to Snow Leopard, and while I really like the ability to play video files right from the icon in Finder, the thumbnail icon and subsequent video is split diagonally by a line.  The video quality on the upper left portion looks to b

  • Image capture doesnt detect camera plugged in, why ?

    HI all I only found out how good image capture was a few weeks ago when I wanted to backup ALL the photos on my iPad my MBP detected the iPad instantly my mate plugs his camera into his MBP and image capture doesnt know it is there waiting for photos