Reputation: 13
I'm very new with kentico and I'm a junior .net developer. I have created from scratch my master page in visual studio. My question is : how do I use it in my kentico portal for my page templates? Thanks
Upvotes: 0
Views: 119
Reputation: 317
Let me try answering your question. 1. Create your ASPX page in Visual Studio with or Without .master page. Really doesn't matter. 2. Page Template > Create new page template in Kentico CMS (select newly created aspx page in visual studio); make sure you select "ASPX page" as Template type. Save and go back to Pages. 3. Make sure that you don't have root page as normal page and select blank or any "ASPX page" template you may have created in kentico CMS. 4. You can start creating your web site pages under root:PageType: Root.
Good luck.
Upvotes: 0
Reputation: 1869
ASPX master pages themselves don't sit within Kentico, you'll need to add the master page into the ASPX template code in the standard whatever.aspx
page in the usual way (MasterPageFile="~/SomeMasterPage.Master"
). It can be a bit confusing, as in Portal, you also have the concept of master pages but these are a little different.
To use your page portal, check through Kentico's documentation on creating master pages for ASPX templates and make sure you've covered off all the basic steps. There is also an accompanying page about creating ASPX page templates which may be of use to you.
Upvotes: 1
Reputation: 6117
Even though your question is pretty broad, you might want to start out by looking at Kentico's documentation and understanding what the development models are and how you handle each one.
https://docs.kentico.com/k10/developing-websites/choosing-the-right-development-model
Upvotes: 2