Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > CMSContext.CurrentDepartment - where do you set the value? View modes: 
User avatar
Member
Member
nqwebdev1 - 7/9/2013 2:33:16 PM
   
CMSContext.CurrentDepartment - where do you set the value?
Hi there,

I'm building an Intranet from scratch and there's this one value that I cannot get - CMSContext.CurrentDepartment.NodeGUID and CMSContext.CurrentDepartment.NodeAlias - always returns empty.

Where do you derive this value from?

I'd like to display on the page with the "statictext" webpart the name of the current department and use the default value {% CMSContext.CurrentDepartment.NodeAlias %} but it always returns empty. But if I were to use the example site, it will return the correct site.

What did I do wrong?

User avatar
Member
Member
nqwebdev1 - 7/9/2013 2:44:40 PM
   
RE:CMSContext.CurrentDepartment - where do you set the value?
Nevermind, found the answer. Apparently the class name has to be IntranetPortal.Department ..

User avatar
Member
Member
Swainy - 7/10/2013 3:39:48 AM
   
RE:CMSContext.CurrentDepartment - where do you set the value?
Hi yes this is correct,

this is needed because there are also departments in E-Commerce.