Extend ContextMenu and Listing View with additional functionalities

Tomasz Czado asked on May 6, 2016 12:49

Hi all.

Short brief. I would like to create some custom functionality and to do that I need to:

  • on Pages Application add custom option to Context Menu, and when I click on single document on documents tree I'll be redirected to some custom page
  • on Pages Application, on Listing View, I would like to add additional functionality to actions on the bottom of the list. Then I can chose few documents, choose that action and then do something or to be redirect to some custom page

Of course I wouldn't like to modify built-in controls, because I still want to have ability to update Kentico.

For more details please to look at my screens:

Correct Answer

Michal Samuhel answered on May 6, 2016 15:38

Hi Tomasz, Generally speaking the upgrades should work even on customized projects, it all depends on complexity of customizations and these specific customizations should be transferable to another version because as far as I know there are no plans on major redesign or braking changes in pages.

As for your oringinal question to customize the context menu in the tree you will need to customize two controls yourproject\CMSModules\Content\Controls\ContentTree.ascx and yourproject\CMSModules\Content\Controls\TreeContextMenu.ascx .

The listing view extension customization might be easier as all you need to do is create an extender for the UI interface with class that covers the logic and new unigrid actions. There is even a page in documentation for that:

https://docs.kentico.com/display/K9/Creating+extenders+for+module+interface+pages

0 votesVote for this answer Unmark Correct answer

Recent Answers


Trevor Fayas answered on May 6, 2016 15:10

Support may know more, i can't see it in documentation but there may be a class you can overwrite to extend the functionality. It may be in the CMS.ExtendedControls.ContextMenu. Granted since this is pretty core to Kentico, you may end up having to make a copy of Kentico's files (for posterity), and modifying the aspx pages (or at minimum modifying which control is used in the aspx page for the menu listing, so you can insert your own control and put in your custom functionality).

1 votesVote for this answer Mark as a Correct answer

Tomasz Czado answered on May 6, 2016 15:14

Basiclly yes, but it means to stop supporting Kentico updates and so on since using custom control. I'm looking for somthing that can be "inject" to current functionality.

0 votesVote for this answer Mark as a Correct answer

Tomasz Czado answered on May 11, 2016 13:31

That looks really helpful.

0 votesVote for this answer Mark as a Correct answer

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