Load pages inside master template

Jeff Klunder asked on May 9, 2017 13:24

Hi all,

I've created a master template from scratch using Sublime Text. All has been put into Kentico, but in the master template the subpage isn't shown. I allready found something called a pageplaceholder webpart, but adding and configurating that particular webpart isn't doing anything.

Should I make a master template through the Kentico wizard or is it okay when making one in a separate IDE?

Recent Answers


Brenden Kehren answered on May 9, 2017 14:17

Is there any particular reason you're using ASPX development model vs. Portal? Having worked with Kentico since 2008 and early v4, I've found very few instances where I've needed to use straight ASPX model or even ASPX + Portal. You can typically everything you need with Portal and custom webparts (unless you're doing MVC).

If you must use ASPX model, I suggest starting out here: https://docs.kentico.com/k10/developing-websites/developing-websites-using-aspx-templates

0 votesVote for this answer Mark as a Correct answer

Jeff Klunder answered on May 9, 2017 16:22 (last edited on May 9, 2017 16:22)

Hi Brendan,

To be honest, another developer had a bit more Kentico experience and he used ASPX dev. for his project. I assumed it was 'the way to go'. I'll give the Portal option a go and see if what I want gets done this way.

0 votesVote for this answer Mark as a Correct answer

Jeff Klunder answered on May 10, 2017 09:44 (last edited on May 10, 2017 09:45)

After some fiddling around, I think I got it working. What I did was:

  • opened up the Settings application
  • picked the site in the top left select
  • opened up the Content tab
  • selected the page I want to use as the default page, under Web site Content

Now if I open up the Pages application, I see a master page with 3 'subpages' I created: homepage, subpage and subpage 2. When I browse to the evironment, I see the elements from the master page (header, footer) and in between I see the content from the homepage. Clicking on the subpage or subpage 2 menu items, the content changes accordingly.

Not the full 100% sure this is the correct road to take, but it works as I want it to work. So I'm a happy developer (=

1 votesVote for this answer Mark as a Correct answer

Jeff Klunder answered on May 15, 2017 11:09

Hi Brendan,

I've search a bit more about those template types and I found a possible reason why we use Aspax/portal page instead of the Portal option. Using the first, we can select a template made with a external editor (in this case Sublime Text). When using the Portal page option, we can't seem to find this select option.

Maybe it's not the correct way to go, but we're fairly new to this Kentico thing still. We're learning as we go :)

0 votesVote for this answer Mark as a Correct answer

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