How do I disable the design dialog on an overlayed component? | Community
Skip to main content
July 12, 2018
Solved

How do I disable the design dialog on an overlayed component?

  • July 12, 2018
  • 6 replies
  • 2682 views

I created a copy of the List core component by overlaying it, and I've customized it pretty heavily.  None of the options in the design dialog apply anymore, so I'd like to disable it altogether so that there is no Policy icon on the component in the template editor.

Does anyone know how to do this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

I believe you are not overlaying but overriding using proxy component for wcm core list component.

In this case you need to hide design_dailog.

Create the design_dialog node and  create a property sling:hideResource

    • type: Boolean
    • value:  true

6 replies

arunpatidar
Community Advisor
Community Advisor
July 12, 2018

Hi,

if you don't want design dialog you can delete it from your copied component or keep it empty without items.

Arun Patidar
July 12, 2018

Thanks for your response.

I didn't copy the component (though maybe that's what I need to do) - I overlayed it.  Deleting the cq:design_dialog node just makes it use the dialog from the core component.  I could keep it empty, but I was hoping for a cleaner way to just disable it altogether.

arunpatidar
Community Advisor
Community Advisor
July 12, 2018

while overlay you have option to hide certain property or node

you can use sling:hideChildren = cq:design_dialog

Using the Sling Resource Merger in AEM

Thanks

Arun

Arun Patidar
July 12, 2018

Where would I put that?  I tried a couple things but it didn't work.

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
July 12, 2018

I believe you are not overlaying but overriding using proxy component for wcm core list component.

In this case you need to hide design_dailog.

Create the design_dialog node and  create a property sling:hideResource

    • type: Boolean
    • value:  true

Arun Patidar
smacdonald2008
Level 10
July 26, 2018

Nice response Arun - as always