Forum Discussion

Keyvan Pashaei's avatar
Keyvan Pashaei
Copper Contributor
Dec 19, 2024

Site template: How to make a Content Type a default one?

Hello SP gurus, 

I am working on a site template to apply to sites which add a content type from the hub.

I wonder how can I make it default one rather than "Documents"?

  • So the main issue is setting default content type isn't supported by Site script so you need to do it via trigger a flow and using HTTP apply it 😊

     

    I wrote a blogpost exactly about this a month ago, you should be able to flow it and modify it to your needs!:

    https://yourmodernworkplace.com/blog/Setting-default-Content-type-Using-Flow

  • Keyvan Pashaei's avatar
    Keyvan Pashaei
    Copper Contributor

    Hello Hammed,

    Thanks for the reply.

    Yes, I know about this :) but what I wish to do this trough the "Site Script" not manual process.

    • HaidariHammad's avatar
      HaidariHammad
      Brass Contributor

      This article might be helpful to you:
      https://www.sharepointdiary.com/2018/07/set-default-content-type-in-sharepoint-online-using-powershell.html

  • HaidariHammad's avatar
    HaidariHammad
    Brass Contributor

     

    Configure the Default Content Type

    1. After enabling Content Types, go back to the Library Settings page.
    2. Locate the Content Types section (refer to Screenshot 1). Here, you’ll see a list of content types associated with the library.
    • If your desired content type is not listed, click Add from existing site content types to add it.
    1. Once the desired content type is visible:
    • Click Change new button order and default content type (circled in Screenshot 1).
    • On the following page (refer to Screenshot 1 and Screenshot 2):
    • Adjust the Position from Top to place your desired content type at the top.
    • Ensure the “Visible” checkbox is selected for all necessary content types.
    • Click OK to save changes.

     

     

Resources