Copied to clipboard

Flag this post as spam?

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


  • praveity 100 posts 125 karma points
    Jul 27, 2011 @ 11:59
    praveity
    0

    Disable "edit in canvas" for admin user at Backend

    The title is self-explanatory.. 

    Any have succeeded doing so ?

  • praveity 100 posts 125 karma points
    Jul 28, 2011 @ 03:24
    praveity
    0

    The title is self-explanatory. I have look on database, there is a umbracousertype table with have column named "userTypeDefaultPermissions" with default permission. The letters there have specific meaning like create, delete, publish and so on. Edit in canvas is specified with symbol ":". Can I changes those for the admin user so it won't be there in context menu at the backend.

    Any have succeeded doing so ?

  • praveity 100 posts 125 karma points
    Aug 04, 2011 @ 13:53
    praveity
    1

    I found the solution by making a class file that inherits the ApplicationBase of Umbraco 

    public class CustomContextMenu : ApplicationBase

        {

            public CustomContextMenu()

            {

                BaseTree.BeforeNodeRender += new BaseTree.BeforeNodeRenderEventHandler(BaseTree_BeforeNodeRender);

            }

     

            void BaseTree_BeforeNodeRender(ref XmlTree sender, ref XmlTreeNode node, EventArgs e)

            {

                if (node.NodeType == "content") // check if the its content section or not

                {

                        node.Menu.Remove(ActionLiveEdit.Instance); // Remove the "Edit in canvas"

                }

            }

        }

Please Sign in or register to post replies

Write your reply to:

Draft