Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Serg 1 post 71 karma points
    Jun 14, 2017 @ 16:04
    Serg
    0

    Custom section in Menu Umbraco 7.6

    Can I add my custom menu item to this menu in admin panel Media page and how?

    I wrote this, but it add menu item only on Content page in admin panel:

    TreeControllerBase.MenuRendering += TreeControllerBase_MenuRendering;
    void TreeControllerBase_MenuRendering(TreeControllerBase sender, MenuRenderingEventArgs e)
            {///}
    

    enter image description here

  • Marc Goodson 1451 posts 9716 karma points MVP 5x c-trib
    Jun 17, 2017 @ 22:10
    Marc Goodson
    1

    Hi Serg

    Yes you can check if the TreeAlias of the TreeControllerBase sender is "media" or not...

    You can see an example of this in the Backoffice Image Rotating package I put together...

    https://github.com/marcemarc/uSpinMeRightRound/blob/master/Solution/tooorangey.uSpinMeRightRound/App_Start/RegisterEvents.cs

    If that helps?enter image description here

    regards

    Marc

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies