Copied to clipboard

Flag this post as spam?

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


  • Arun 103 posts 274 karma points
    Mar 09, 2020 @ 05:25
    Arun
    0

    Custom Node Menu

    Is there any way to override node menu in umbraco 7?

    I would like to give a custom option "Publish in Home(DA)" under copy

    enter image description here

  • Marc Goodson 1451 posts 9716 karma points MVP 5x c-trib
    Mar 09, 2020 @ 06:55
    Marc Goodson
    1

    Hi Arun

    Whenever a node is rendered in a Tree in the Umbraco backoffice, the Menu Rendering event is fired, you can handle this event, and with the context of the id of the node - can customise which Menu options are shown by adding or removing to the MenuRenderingEventArgs 's collection of Menu Items:

    See here for an example:

    https://our.umbraco.com/Documentation/Extending/Section-Trees/trees-v7#menurendering

    regards

    Marc

  • Arun 103 posts 274 karma points
    Mar 17, 2020 @ 03:47
    Arun
    0

    Hi Marc Goodson
    Thank you, I got it : )

    I have created a class RegisterEvents.cs

    enter image description here

  • 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