Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sitecore edit frame buttonRoot isn't set for edit frame

I'm trying to have the page editor functionality working on my sitecore 7. I created a user control and I'm getting this error "buttonRoot isn't set for edit frame"

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BodyText.ascx.cs" Inherits="Website.layouts.Sublayouts.Page_Sublayouts.BodyText" %>

<%@ Register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Kernel" %>
<sc:EditFrame ID="EditField" runat="server" Buttons="/sitecore/content/Applications/WebEdit/Edit Frame Buttons/Default">
    <sc:FieldRenderer runat="server" ID="fldMainContent" FieldName="Body Text" />
</sc:EditFrame>

Does anyone knows what I'm missing?

Cheers and thanks in advance

like image 203
Snapper Avatar asked Apr 24 '26 12:04

Snapper


1 Answers

Basically, this exception could occur due to different reasons.
Please check following:

  1. Make sure that "/sitecore/content/Applications/WebEdit/Edit Frame Buttons/Default" item exists in the "core" database and you have read access to it.
  2. If your Edit Frame/Frames has the "Buttons" property, please make sure that the item specified in that property exists in your Core database and your user have access to it.

(The item should be located under the "/sitecore/content/Applications/WebEdit/Edit Frame Buttons" item).

like image 183
Christian Bennich Avatar answered Apr 28 '26 16:04

Christian Bennich