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.
Disable "edit in canvas" for admin user at Backend
The title is self-explanatory..
Any have succeeded doing so ?
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 ?
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"
}
}
}
is working on a reply...