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!
AI OnAI Off
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!
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