Uncheck Show In Navigation on a specific page type

mun yung kan asked on February 16, 2015 06:35

Hey guys,

is it possible to have the "Show In Navigation" checkbox unchecked by default on a single page type?

Correct Answer

Brenden Kehren answered on February 16, 2015 07:43

With a global event handler you could do this.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Jan Hermann answered on February 16, 2015 07:59

Hello,

Yes, you can take advantage of the DocumentEvents.Insert.After event:

if (e.Node.ClassName == "custom.doctype") {
  var doc = e.Node;
  doc.DocumentMenuItemHideInNavigation = true;
}

Best regards, Jan Hermann

0 votesVote for this answer Mark as a Correct answer

mun yung kan answered on February 16, 2015 08:08

thanks guys!

I guess i get to learn about event handlers today.

0 votesVote for this answer Mark as a Correct answer

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