2SXC: Disable QuickE for a Specific Module/View

33 Views Asked by At

I know there is an old thread here on this, but we can't seem to resolve the same issue running DNN v9.12 and 2SXC v16.7 after reviewing all the docs here.

We do have QuickE enabled on the skin like this and it works site-wide:

<%@ Register tagprefix="Edit" tagname="QuickEdit" src="~/DesktopModules/ToSIC_SexyContent/DnnWebForms/Skins/QuickEdit.ascx" %>
<Edit:QuickEdit runat="server" />

When we try and disable QuickE in a razor view for one specific module then all the QuickE buttons disappear from the page:

<div @Edit.Attribute("quick-edit-config", new { modules = new { enable = false }})>
    ...
</div>

...or...

<div @Edit.Attribute("quick-edit-config", new { enable = false })>
    ...
</div>

We based our attempts based on this comment in the referenced post by @iJungleBoy:

if it's on on the whole page, but you have a container for the module where it should be off, put that attribute on that container - and inside the module it will be off.

We also tried enabling QuickE via the quick-edit-config attribute within parent elements of the skin, but that didn't work either.

Thank you for any guidance you can provide!

1

There are 1 best solutions below

1
iJungleBoy On

I haven't worked on this since forever, but IMHO it's hierarchical.

So if you have it on in the skin, and then a div in your Razor with the quickE that should result in QuickE turning off inside that view.

If you want to turn in off outside that view then I'm not actually sure what you're doing.

  • Normally you turn it off inside a view to prevent inner-content
  • or you turn it off on the page to only allow inner content - eg on a Blog-details page where the user could accidentally add more modules to the details-page, which is not expected.