London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Open quick edit display when clicking on block in On page edit mode instead of default contentarea list dialog.

Vote:
 

Hi!

I have a client that have a specific requirement. They want that when you are in the OPE view and click on a block the quick edit popup/dialog for that block should open.

The default behavior is that the blocks in the contentarea shows up in a popup/dialog. Can i override that behavior somehow and instead open the quick-edit diaolog?

The site is using Optimizely 11.36.8

I cant find any solutions and/or questions regarding this. According to some AI:S that i´ve asked the same question it should be possible by rendering the contentarea with PropertyFor and this in my customcontentarearenderer.cs

      protected override void RenderContentAreaItem(
    HtmlHelper htmlHelper,
    ContentAreaItem contentAreaItem,
    string templateTag,
    string htmlTag,
    string cssClass)
        {
            if (PageEditing.PageIsInEditMode)
            {
                // ← preserve the EPiServer wrapper and click-handler
                base.RenderContentAreaItem(
                    htmlHelper,
                    contentAreaItem,
                    templateTag,
                    htmlTag,
                    cssClass);
            }
            else
            {
                htmlHelper.RenderContentData(
                  contentAreaItem.GetContent(),
                  false,
                  templateTag: templateTag);
            }
        }

But it does´nt work for me. 
Is this even at all possible? And if so what steps could i take to apply this? Should i use some dojo-script or jack into some event for example?

Thanks in advance!

Martin

 

#338534
May 22, 2025 9:52
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.