Add Policy to the custom components

Avatar

Avatar

tirthtimaniya

Avatar

tirthtimaniya

tirthtimaniya

01-03-2019

Hello All,

I have created one custom component and allow that component in my editable template.

But now I am not able to see policy options for my custom component.

In my custom component I have created cq:dialog and cq:editConfig and one HTML file

should I need to make any configuration or anything?

please help me with this

Thank you 🙂

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

02-03-2019

If you're talking about the 'settings/policy' icon, then you'd need to add cq:design_dialog node. Otherwise extend your component from one of core components that already has the policy and thereafter you can customize it following the link shared by Arun above.

1702926_pastedImage_0.png

Answers (6)

Answers (6)

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

04-03-2019

yes, check the core components for reference.

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

958

Correct Answer

820

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

958

Correct Answer

820
Arun_Patidar
MVP

01-03-2019

Hi,

Please check component level policy at below:

AEM Developer Learning : Dynamic (Editable) Templates in AEM 6.3 : Part-1

Avatar

Avatar

sumanthbonda

Avatar

sumanthbonda

sumanthbonda

29-02-2020

Please create design dialog for that component then you have see the policy option for that component in editable template 

Avatar

Avatar

tirthtimaniya

Avatar

tirthtimaniya

tirthtimaniya

04-03-2019

Thank you so much.

But still we have to use core components 😞

Avatar

Avatar

tirthtimaniya

Avatar

tirthtimaniya

tirthtimaniya

03-03-2019

gauravb10066713smacdonald2008

Thank you so much it worked for me.

If I am editing its policy and take an image component as my core components but it is showing me the policy screen of image component

so my question is can we build our own policy page and our own fields for our custom components?

Thank you.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

03-03-2019

Great responses!