Setting a particular page type defaults for basic properties?

Michael Purgar asked on January 24, 2020 17:33

Hi all -

I suspect this might be something that will end up being obvious once pointed out, but I'm having trouble figuring out how to set the "Show in Navigation" and "Show in Sitemap" fields as unchecked by default, but only for one particular Page Type I have created. In other words, I need users to be able to create these pages without having to manually turn these features off every time, ONLY for this one page type.

Can anyone point me in the right direction where to set this? Thank you!

Recent Answers


Dat Nguyen answered on January 24, 2020 17:50 (last edited on January 24, 2020 17:52)

When you add a field for the page type, in the Field type field, select Page field. Then you can select the appropriate fields for the navigation settings in the Field name field and set their default value.

If that somehow doesn't work out, you can try setting the values of those fields via handling the page insert event.

0 votesVote for this answer Mark as a Correct answer

Michael Purgar answered on January 24, 2020 18:02

Hello Dat -

I had tried that with the fields DocumentShowInSiteMap and DocumentMenuItemHideInNavigation for the Page Fields, and while the Form tab shows these fields they don't reflect the defaults I had set, and when I go into the Navigation settings those defaults are not applied. They still need to be set manually for each new page of that type. Is there some other setting to make these apply to newly created pages?

0 votesVote for this answer Mark as a Correct answer

Dat Nguyen answered on January 24, 2020 18:13 (last edited on January 24, 2020 18:14)

According to this question, setting default values for those fields via the form field editor seems to be buggy and Kentico might not have ever fixed it. The workaround is to handle the document insert event.

0 votesVote for this answer Mark as a Correct answer

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