Site structure
Version 6.x > Site structure > Customizing Departments on the Intranet Portal site View modes: 
User avatar
Member
Member
stephen.turley-terradon - 5/22/2012 8:41:26 AM
   
Customizing Departments on the Intranet Portal site
A client is requesting that we change the default sections for a department website. I've created a department site with the appropriate sections and created a copy named "Template". My hope was when an administrator creates a new department site, it would generate all of the pages from the template. This is not the case and it looks like I need to modify the "Department Sections Manager" in the Department document but I'm not sure how to do this, or if this is the correct course of action.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 5/23/2012 1:58:32 AM
   
RE:Customizing Departments on the Intranet Portal site
Hello,

It is enough to add a new "section" - a new document to the template section. The "Department Sections Manager" uses this code to get its content:

string templatePath = DepartmentTemplatePath;
if (!String.IsNullOrEmpty(templatePath))
{
templatePath = TreePathUtils.EnsureSingleNodePath(templatePath).TrimEnd('/') + "/%";
mTemplateDocuments = DocumentHelper.GetDocuments(CMSContext.CurrentSiteName, templatePath, null, false, null, "NodeAlias != ''", "NodeOrder ASC", 1, false, 0, "NodeID, DocumentCulture, NodeAlias, NodeClassID", null);
}

You can set up DepartmentTemplatePath in Site manager -> Settings -> Site: your site -> Intranet & Collaboration.

Can you check it? You may need to restart the application in Site manager -> Administration -> System after a change.

Best regards,
Helena Grulichova

User avatar
Member
Member
sterling.tulk-cna.nl - 10/10/2012 12:42:03 PM
   
RE:Customizing Departments on the Intranet Portal site
When i create a new intranet department, i have the option of the following from the Used department sections

news,calendar,documents,media,blogs,forums,wiki,projects and members.

Is it possible that i can add my own through the portal engine called "library services", that is a basic webpage?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/11/2012 3:36:29 AM
   
RE:Customizing Departments on the Intranet Portal site
Hello,


it uses all document underneath the department template for that form control. It is enough to place your document (it can be of any type) there.


Best regards,
Helena Grulichova