Limit the number of a child page type per parent

S1T2 Developer asked on October 25, 2019 02:30

As mentioned in the subject, is there a way to limit the number of a child page type per parent?

Assuming I have the page type Subpage allowed under Page, and the Page named "Home Page" has 4 Subpages, the user should not be able to create another Subpage under "Home Page".

Recent Answers


Juraj Ondrus answered on October 25, 2019 14:17

You could use global event handler and in the document before insert event check the number of already existing items in given section.

0 votesVote for this answer Mark as a Correct answer

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