Content types, Required site columns, How are they supposed to work?

Hi,
I have 2 issues:
I created a Folder level content type with many Required site columns. I was hoping that when I create a new folder the new content type screen will pop up and I must enter all the required properties (metadata) for this new folder.
Issue 1) But it didn't work that way.  It just required me to enter the name of the folder and the folder was created.
Issue 2) I then went to Edit Properties to enter enter all the required metadata.  I would like to have my newly created content type to be the default.  So that when I open up the Edit Properties the popup screen would defalt to my new
content type.  But it defaults to "Folder" Content type.   even though in liberary setting, My new content type was the only one check "visible" and set as default.
Can someone please help? Am I missing something?
Thanks!

I don't think you can do what you want to do using only out of the box features. A few notes:
Users will need to click the New Document dropdown in the ribbon to select your new folder content type. (I.e. Don't click New Folder)
The "default" option in the content type list is to pick the default content type to be selected when you click the New Document button. (I.e. it won't impact the New Folder ribbon button)
The ribbon button for New Folder is hard coded to use the built in folder feature.
You may want to look into the 2010 Document Set feature to create folders with metadata. It will do what your custom content type does and a lot more.
Possible solutions:
Create JavaScript hack that changes the New Folder link in the ribbon to go to the New Document link for your custom content type.
Create a Visual Studio Feature to hide the New Folder button and add a new New Folder button that points to the New Document link for your custom content type.
Leave the existing New Folder button there and create Feature to add a new custom button for your content type.
Mike Smith TechTrainingNotes.blogspot.com
my SP customization book

Similar Messages

  • Site content types and site columns were absent

    hi,
    i have seved a  sub site as a template which includes 20+ doc libs with 20+ site content ctypes which includes  15+ site columns  and then i have used this savedsite template in one site collection and implemented my
    custom web parts and upload document fun. successfully.
    now i have created another new site collection and forgot to create site content types and site columns as  we have seen the  site columns in the saved site template already.
    now i realized that those  site content types and site columns were not there but the strange thing is that i am able to uplaod the documents  into those document libraries  which are not associated with site content types, without any error.
    Can I create  the same in my new site collection ? since i have already created  many many sub sites based on the  saved site templates tested the functionality ,i dont wanna delete the template recreate all the sites  again in order
    to save the time.
    Now pls advice:
    1) if site columns / site contents  were not existing at the site collection level, will this affect my func. in future?
    2)   is there any automated way fo creating site columns, site content types, associateing these site content types with doc libs programmatically like power shell/ sp object model API.
    3) would like to any programmatic way of creating hundreds of sub sites based on the saved site templates in myw eb application/ site collection.

    Hi,
    We can create site columns, site content types or sub-sites using SharePoint Server Object Model.
    The following articles for your reference:
    SharePoint 2010: Create Site Columns and Content Types using C#.Net
    http://social.technet.microsoft.com/wiki/contents/articles/20267.sharepoint-2010-create-site-columns-and-content-types-using-c-net.aspx
    How to: Add a Content Type to a SharePoint List
    http://msdn.microsoft.com/en-us/library/office/aa543576(v=office.14).aspx
    Create Sites Using Custom Site Templates in SharePoint 2010
    http://www.c-sharpcorner.com/UploadFile/63e78b/create-sites-using-custom-site-templates-in-sharepoint-2010/
    How to create sub site with custom site template through PowerShell
    http://fangdahai.blogspot.com/2012/08/how-to-create-sub-site-with-custom-site.html
    Best regards
    Dennis Guo
    TechNet Community Support

  • 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].

  • How are we supposed to work with the new motion tweens if there's no motion editor anymore?

    How are we supposed to work with the new motion tweens if there's no motion editor anymore? Without motion editor we can't see what kind of keyframes are set and we can't set any accelerations anywhere. Does Adobe now want us to go back and use the old motion tweens?

    Hi All,
    Flash Pro CC 2014 (v 14.0.0.110) is now available for download via the Creative Cloud App.
    We have included an all new Motion Editor along with several other new features with this release of Flash Pro. The new Motion Editor is completely redesigned, intuitive and easy to use while preserving the core functionalities and backward compatibility with Flash CS6
    To Invoke the Motion Editor, simply Double-Click on your Motion Tween span on Timeline (or Right-Click and select 'Refine Motion') and the Motion Editor opens up in-context in the Timeline itself. Double-Click again to collapse once you have made your adjustments.
    Complete list of New features in Flash Pro CC 2014 is available at these links:
    Overview:         https://www.adobe.com/in/products/flash.html
    Whats new:      https://helpx.adobe.com/flash/using/whats-new.html
    Release Notes: https://helpx.adobe.com/flash/release-note/flash-professional-cc-2014.html
    Videos:           https://helpx.adobe.com/in/flash.html
    Thanks,
    Nipun

  • Using the External Content Type as a column lookup

    Hi.
    I am working on a solution that will get data from a web service (third party) and create a list in SharePoint Online (Office365 E3 subscription). The use a column from that list as a lookup column for another list. The reason for this is to allow updates
    on the third party data source to update the list in Office 365.
    Using SPD 2013, I created that external content type then created the list. However, due to the limitations on BCS (which I just learned after googling it) that the only thing I can use from this column is the ID column.
    Has anyone found a work around on the matter? I was thinking of just creating a list app then load the bcs data to it. My problem will be how to update the list every so often.
    Thanks!
    Robert
    Outsource Trainer

    Hi,
    According to your post, my understanding is that you want to use the External Content Type as a column lookup.
    Per my knowleage, you can select all the columns in the external list.
    You can create a lookup column in the list as below:
    If you select Name, then you can get the Name column as below:
    There is an article for your reference, although it is about the SharePoint 2010, it still works for SharePoint Online 2013.
    Creating SharePoint lookups which get their data from a lookup
    table in SQL (using SharePoint Designer, BCS and External Content Types)
    More information:
    Make an External List from a SQL Azure table
    with Business Connectivity Services and Secure Store - SharePoint Online for enterprises
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • What are phantom materials and assembly... how are they taken care during M

    Hello Gurus
    what are phantom materials and phantom assembly... how are they taken care during MRP run

    Hi
    Phantom assembly is the logical assemble. You have to define special procurement type in mateiral master as 50 to make the item as phantom.
    When you make the item as phantom when running mrp BOM will explode for the phantom <b>ONLY child materials requirements will be generated</b>.For phantom assembly planned order will not be generated.
    A phantom assembly is a logical grouping of materials. A phantom assembly is usually created within engineering, in order to describe a number of components easily and manage them as a whole. The components in a phantom assembly are placed immediately into the superior assembly. As opposed to this, components in an assembly are first assembled to produce the header material. After this the header material is placed into the superior assembly.
    Example: The phantom assembly "set of wheels" contains the components "front wheel" and "rear wheel". The front and rear wheels are placed immediately into the "bicycle" assembly. The "light" assembly contains the materials "bulb" and "reflector". The light components are first assembled and then the light is attached to the bicycle.
    Regards
    Ranga
    null

  • SMART FORMS: How are they used and how can they be configured/enhanced?

    Hi Experts,
    I would like to know how are the smart forms used in crm.I know that by using t-code SMARTFORMS we can view/edit standard smart forms . But I am confused about the fact that how are they used.If some one can list me the steps to be followed in simple language that would be of great help.
    Any pointers would also be appreciated.
    Regards,
    Aneesh

    Hi Aneesh,
      In CRm we use smartforms to send mail to Business partners based on the client requirement. This sending process will be defined using Actions. Through actions we will trigger the smartform and send to the concerned busines partner mail id.
    Hope this helps you.
    Regads,
    Lakshmi.Y

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • I created a form for our band parents to fill out.  How are they able to save the forms as pdfs?

    I created a form for our band parents to fill out.  How are they able to save the forms as pdfs and be able to go back and view them?  I see the Save Submission-Enabled PDF on the Distribution page but there is no option when they go in to the first page of the form to save.
    Thank you very much for your help.

    If you are distributing a PDF using the save submission enabled pdf option, then respondents can save it using the Adobe Reader. They save it just like any other file - File menu -> save (or save icon on toolbar).
    Randy

  • How are they going to resolve the 4s 3g problem??

    How are they going to resolve the 4s 3g problem?

    Huh?  If WiFi is available, the phone always uses WiFi over 3G.  This is NOT a problem with the 4S. 

  • Tables: CATSDB & AFRU - How are they filled and what are there purposes?

    Hi,
    In regards to tables CATSDB & AFRU, how are they filled (interfaces, programs) and what are the purposes of these tables?
    I found the interface IF_EX_CATSBW_CUST_ISOURCE for table CATSDB but is this how CATSDB is filled? How about AFRU?
    Please help.
    Thanks,
    John

    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/19/8d38689bfd11d38ea50000e81de309/frameset.htm">CATSDB</a> is usually filled via Time Entry (CAT2) or a BAPI call.
    Arya

  • RealStrat and Kontakt 3 - How are they for you Logic 8/Mac Pro?

    Hi
    I'm thinking on splurging on these two products to use in Logic 8 with an Intel Mac Pro. How are they for you? Do they work OK? I don't see too many negative comments here so I'm assuming that they're working OK. I'll go look the Native Instruments and MusicLab forums as well but thought there might be those here who could comment.
    Regards
    Graham

    K3 works fine on my 8-core since version 3.01 - actually 3.02 is buggy again so don´t upgrade to the latest version of K3 which is 3.02.
    If there would not be the annoying 2 Gigabyte RAM limit within 32-Bit applications I would be even happier, but if you need more Sample space just setup an additional K3 in standalone mode and wire it through the IAC Bus.
    If you use it in multitimbral mode with multiple outputs you'll have to write any automation onto the assigned Aux tracks as automating the single Midi tracks for K3 does not work.
    Altogether K3 is an awesome mashine with clear improvements compared to K2.

  • HT201365 I work for a company and when we have users terminated they return their phones and we do not know the passcord or apple id for them how are we suppose to wipe a device?

    We terminate user and we sometimes like to remote wipe or get back a phone that is locked by a passcode we do not know what it is? So how are we suppose to be able to wipe the devices. The users setup their own apple accounts so we never know which email or password are either? so how are we suppose to remotely wipe or wipe device to be able to reuse?

    I am in the same situation, trying to figure out the most elegant way of recovering company iPhone assets that are returned to me.  It won't help for anyone already set up under an existing Apple ID, but here is what we're doing, moving forward:  All AppleID accounts must be set up under the user's work email address.  This way, when John Smith leaves our company, I can have our email admins reset his work email password.  I then go to the Apple ID link, ask Apple to reset that user's work AppleID password through Email authentication, and that auto-email is sent to the mailbox that I now have control of.  I click the "reset" link in the email, and proceed from there.  Not the smoothest process, but it will hopefully work.

  • How are you supposed to upload new music to your iPhone in iOS 5?

    I have some folders in iTunes that I had setup to synchronise with the iPhone on iOS<5.
    I have some other folders that synced with my iPad.
    I don't understand how I'm supposed to change the music on my iPhone now when we sync with the cloud? how do I tell iTunes to "sync this with the iPhone, and this with the iPad."?
    I have looked for manuals about his on Apples support site, but couldn't find any.
    Please help me, so I understand how it's supposed to work!

    Then be more specific.
    Creat a list with your top rated trance music, or put a keyword in certain songs and make smart playlists using keywords or simply limit the size of the smart playlist.
    You can make =these playlist in just about any manner you wish.  They are very flexible.

  • How are you supposed to play a photo cd on a macbook pro?

    how are you supposed to play a photo cd on a macbook pro? when i put it in my drive, it says something like disk type not supported when i open up the dvd player. please tell me if theres some kind of software i have to download..please and thank you

    when you insert the disk it should be in the side bar of finder. double clickt he disk and you should have some sort of file in it. I'm not sure what softwware was used to create the slideshow but if it's a movie you'll have to figure out what type of media it is. I think VLC media player will be your best bet to play this CD/dvd though.

Maybe you are looking for