How to add an admin page to appear only for certain page types

Matthew Butler asked on January 11, 2023 12:38

I'm using Kentico 13 and I'm creating an admin page, I would like to appear on the pages tabs, next to content, properties etc.., but I'd only like it to appear for certain page types.

I'm assuming I use macro rules and the Visibility condition, but I can't get that to work as expected

Thanks

Mat

Correct Answer

Matthew Butler answered on January 11, 2023 12:53

Sorted found the following property

{_is}DocumentContext.EditedDocument.ClassName.EqualsAny("{pagetypes}".Split("|"))

0 votesVote for this answer Unmark Correct answer

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