Using Kentico Masterpage & Stylesheets outside KEntico (API)

Bill Mude asked on March 17, 2014 04:55


I'm looking at different ways of integrating Kentico with existing systems. One way is to import the Kentico dlls to the existing solution, set up the conenction string, which I've done & can now see simple news articles using the CMS controls

Is there any way of getting the master page & stylesheets from Kentico so the design person can change the look of the website and it'll work with the existing system?

Recent Answers

Brenden Kehren answered on March 17, 2014 06:21

What I would do is simply copy and paste the masterpage HTML in your content tree into your website that isn't Kentico. Then you can always reference the stylesheet in the other site in your site by simply providing the full URL <link href="//" type="text/css" rel="stylesheet" />

0 votesVote for this answer Mark as a Correct answer

Bill Mude answered on March 18, 2014 04:01

Thanks Brenden, But if the customer changes the layout by adding new sections, I was hoping to have that all work automatically, so a stylesheet alone wouldnt be enough. As a last resort, I was thinking of using iframes, but I was hoping there would be a more elegant solution

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 18, 2014 06:29

Are you talking about only the master page as your original question states or all the page templates? If only the master page, how often does one change their master layout? Copy and paste would work well in my opinion. If all the page templates and if you're using Portal development, I'd suggest just creating another site to support that site. If you weigh the amount of time you'd be writing code already written by Kentico vs. implementing a new site, I bet you'd spend more time writing code.

I don't believe iframes will get you the desired effect you're looking for.

0 votesVote for this answer Mark as a Correct answer

Richard Sustek answered on March 18, 2014 06:41

Hi Bill,

Im not sure what exactly are you trying to achieve with this. Say you have a Kentico site and some different site which does not use Kentico, right? What do you want the non-Kentico site to work like? If you want to share javascripts/css files than use what Brenden has offered. If you want to get News from Kentico then use REST services to get the content from Kentico.

I-frames would just simply load your Kentico site into non-Kentico site, I dont think this is what you are looking for.

Let us know if you have further questions.

Kind regards,

Richard Sustek

1 votesVote for this answer Mark as a Correct answer

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