How do I disable the design dialog on an overlayed component? | Community
Skip to main content
New Participant
Jul 12, 2018 3:13 PM UTC
Solved

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

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 12, 2018 7:55 PM UTC

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

6 replies

smacdonald2008
Level 10
Jul 26, 2018 4:32 PM UTC

Nice response Arun - as always

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 12, 2018 7:55 PM UTC

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

Translate
Arun Patidar
New Participant
Jul 12, 2018 6:12 PM UTC

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

Translate
arunpatidar
New Participant
Jul 12, 2018 5:11 PM UTC

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

Translate
Arun Patidar
New Participant
Jul 12, 2018 3:32 PM UTC

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.

Translate
arunpatidar
New Participant
Jul 12, 2018 3:16 PM UTC

Hi,

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

Translate
Arun Patidar