ASPX templates
Version 6.x > ASPX templates > Master Page Questions and project structure View modes: 
User avatar
Member
Member
lukejamesk-gmail - 9/18/2012 6:44:58 PM
   
Master Page Questions and project structure
Hey,

We have currently been creating kentico sites using aspx + portal functionality and I have a couple questions.

Question 1: When using specifically portal system your top tier page is a masterpage in the sense that if you have an editable image on the masterpage it applies to all templates and isn't accessible to standard pages.

Is there any way to replicate this using an aspx masterpage system?
Currently I have been using a workaround for each editable region I expect to be on the masterpage similar to the following in the masterpage codebehind -

edtRegion1.LoadContent(PageInfoProvider.GetPageInfo(CMSContext.CurrentSiteName, "/", "en-us", null, 1, ConnectionHelper.GetConnection().IsOpen()));

Question 2:

Our company incorporates CI into our development process. We have found kentico is easiest to work with using the website project however we would like to have all our templates, webparts, domain logic, and any other custom content in separate projects. Have you got any suggestions on how to effectively do this? Especially with templates/webparts. Is there anything we should be aware of?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/19/2012 6:37:36 AM
   
RE:Master Page Questions and project structure
Hi,

as I know in aspx templates it is not possible to inherit from the master page. The workaround you are using is actually the solution.

As for web parts and templates in a separate project.
1. Your custom functionality can be implemented in the separated project which can work with Kentico API:
Kentico API in external project
2. you can also create controls in the separated class (in your custom project)
3. as for web partand templates, you should have them stored in a default Kentico project, in a custom folder. You could insert your custom files under following folders in order to have them exportable:
foldre structure

Best regards,
Ivana Tomanickova



User avatar
Member
Member
lukejamesk-gmail - 9/19/2012 5:55:18 PM
   
RE:Master Page Questions and project structure
Hi Ivana,

Thank you for your reply. Will definitely take this on board :)