ASPX templates
Version 5.x > ASPX templates > Website with Mini-sites View modes: 
User avatar
Member
Member
enzo.marchioni - 9/20/2010 11:06:40 AM
   
Website with Mini-sites
I'm currently developing the documentation for a website and looking at Kentico as it seems like a very flexible CMS.

The website needs to accommodate branch mini-sites for several locations. A mini-site has sub-sections (pages) like news, staff, etc; each with their own custom template. I thought of creating a custom document type to manage the mini-sites.

E.g
Mini-site (Custom Document Type)
- News
- Staff

With this in mind, is it possible to access the custom document type properties from the child nodes (News, Staff, etc) templates? Properties would include name, address, telephone which would be used to populate fields in the templates.

Thanks,
Enzo



User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/21/2010 3:43:04 AM
   
RE:Website with Mini-sites
Hello,


You can access the parent's properties from children document context by API.

The relationship parent document - children document is stored via NodeParentID property of children document. Then you can access the document properties by GetValue method like here: http://devnet.kentico.com/docs/devguide/selecting_nodes.htm

API Reference is here: http://devnet.kentico.com/downloads/kenticocms_api.zip


Best regards,
Helena Grulichova