site based on me own master page

Jiří Vrabec asked on November 4, 2015 17:00

Hello

I would like to ask you about to help me to create site based on me own master page.

I created me own MasterPage page (me.master) in directory CMSTemplates, but when i tryed to create new site in Step 5 of 6 (Select master page) there are no option to select it. Is this possible and if yes how ?

Thank you.

Recent Answers


Bryan Soltis answered on November 4, 2015 18:15

Hi,

You will need to create your master page with the correct sections / code. You can find details in the documentation here:

https://docs.kentico.com/display/K82/Creating+master+pages+for+ASPX+templates

After you create it, you will need to register it within the site and then select it for your content tree.

https://docs.kentico.com/display/K82/Creating+ASPX+page+templates

  • Bryan
1 votesVote for this answer Mark as a Correct answer

Jiří Vrabec answered on November 5, 2015 11:49

Hi Bryan,

Thanks a lot for interest. But, this is exactly what I'm not looking for. In your scenario, I will lost possibility to change all pages through master page. I will lost inheritance. I need to preserve inheritance from master page, in other case application will become uncontrollable. Therefore, I need to create root node based on me own master page, is it possible ?

As per this image.

Thanks a lot.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on November 5, 2015 12:15

Hi,
I am sorry but it is little bit confusing. The screen shot you sent is from portal engine templates, most likely. Anyway, you can keep the inheritance in ASPX templates as well. You will set the particular page templates to inherit from your .master file.
IF you want to use ASPX templates, please follow the documentation links posted by Bryan - you need to register the root page template in Kentico and then you will be able to select it. If you will follow the ASPX templates and set their master page file setting, they will be inheriting from this page template. You can take inspiration from \CMS\CMSTemplates\CorporateSite\ templates.

1 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 5, 2015 15:16

In my humble opinion, you're better off using straight portal engine and then not have to deal with pushing code changes when you need to change your master page.

0 votesVote for this answer Mark as a Correct answer

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