Copied to clipboard

Flag this post as spam?

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


  • Allan Svelmøe Hansen 25 posts 136 karma points
    Jan 24, 2020 @ 13:51
    Allan Svelmøe Hansen
    0

    MenuRendering on specfic doc types.

    I'm going to add some new menu items through the TreeControllerBase.MenuRendering.

    What is the most lightway method of finding out which doc type composites the current rendering is for in the component.

    public void Initialize()
    {
                TreeControllerBase.MenuRendering += TreeControllerBase_MenuRendering;
    }
    
    private void TreeControllerBase_MenuRendering(TreeControllerBase sender, MenuRenderingEventArgs e)
    {
       //code stuff here
    }
    

    I can see nodeid exists on the MenuRenderingEventArgs but that would mean I have to fetch content for each rendering and I would prefer not to do that if at all possible.

Please Sign in or register to post replies

Write your reply to:

Draft