create default document type for new sites

Sousan sartipi asked on June 26, 2017 21:21

Hello, we're trying to make a document type by default for every time we create a new website. Similar to the 'Home' or Folder document type which is there by default.

This document type will be called "Failover"

However, we want the 'Security' Permissions for this type to be by default:
Requires authentication: Inherits
Requires SSL: Never

And the Document Alias URL as "failovercheck"

Please let me know if this is possible or the best way to accomplish this setting.

Recent Answers


Brenden Kehren answered on June 26, 2017 22:22

If you want to set these properties each time the page type is created in the content tree there are a few ways to accomplish this:

  1. Create a global handler and set those properties on insert.
  2. Create a partial class to override those value on insert.
0 votesVote for this answer Mark as a Correct answer

Sousan sartipi answered on June 26, 2017 23:19

Thanks for your response.
What is I want to add a page to all Kentico sites which only has 2 requirements : 1- has the failover keyword check 2- always be http and not https Do i need to do this under global handler as well?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 26, 2017 23:25

If you want it to happen automatically then yes, add a global handler. If you want to do it manually then add that page type to the content tree and set the values in the Properties of that page by going to Properties>Security

0 votesVote for this answer Mark as a Correct answer

Ilesh Mistry answered on June 26, 2017 23:37

Hello, I guess another approach is to add this new Page Type into one website and then export it as a pag type package and then import it, when you create the new website.

Now if you want this page type to be in the tree and also something that needs to be used for every new website, another approach is to create this page type on a blank website and add the relevant security settings for the page in the tree. Then use this as a website template for all new websites and you will have the page type with it's setting in place each time.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.