Setting page scopes for a repeated tree structure

Kàren Vaganyan asked on June 22, 2016 20:28

I have a tree structure similar to this:

Departments
-Administration
--Teams
--Services
-Facilities
--Teams
--Services
-Human Resources
--Teams
--Services
-Research
--Teams
--Services
-Marketing
--Teams
--Services

Inside of Team pages I only want to be able to create pages of page type Content – Team. Inside of Services pages I only want to be able to create pages of page type Content – Service.

What I’m wondering is if there is a way to create a page type scope that will apply to all of those page structures without creating a separate one for each department. Perhaps something using page path expressions? Although I’ve tried that and it doesn’t seem to work, I may be doing it incorrectly.

Recent Answers


Jan Hermann answered on June 22, 2016 21:36

There is a workaround by having different page type for each department - like Administration department page type, Facilities page type, etc. (probably all of them would inherit from one main page type or would be clones) and then you can specify parent-child allowed types relationship.

0 votesVote for this answer Mark as a Correct answer

Kàren Vaganyan answered on June 22, 2016 22:12

Hi Jan, the 5 departments I listed in the question were just examples. In reality we have about 20 different departments that would have a similar structure like that, and creating 20 different page types to make the scopes work is a bit excessive. Is it possible to use the scopes conditional field to accomplish this?

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on June 22, 2016 22:16 (last edited on June 22, 2016 22:19)

Karen, unless I am missing something, you could just create a document type of Departments and one of Teams, instead of using the Page document type, and then set the Parent Children in the other document types. This should work out great for you.

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on June 22, 2016 22:21

https://docs.kentico.com/display/K9/Creating+page+types
Review Step 5

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on June 23, 2016 21:37

Hi Karen, the path express doesn't really work for scope in this case.

But if the TEAMS landing page also uses the TEAM page type, then you can set TEAM page type as a child page type of itself. That way, you will only be able to create TEAM page under the TEAMS landing page which is also the same page type.

0 votesVote for this answer Mark as a Correct answer

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