how to save component's design mode configuration in my custom code?

Avatar

Avatar
Validate 25
Level 4
jayv25585659
Level 4

Likes

46 likes

Total Posts

131 posts

Correct reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Validate 25
Level 4
jayv25585659
Level 4

Likes

46 likes

Total Posts

131 posts

Correct reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile
jayv25585659
Level 4

09-03-2021

We are using static pages and we are still using design mode for some things (https://experienceleague.adobe.com/docs/experience-manager-64/authoring/siteandpage/default-componen...)

 

I am wondering if I can save this component+design-mode configuration in my custom code. I've looked around but I didn't find anything useful. Can you please point me to right direction? Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

147 likes

Total Posts

157 posts

Correct reply

53 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

147 likes

Total Posts

157 posts

Correct reply

53 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile
Umesh_Thakur
MVP

09-03-2021

@jayv25585659, when you save a component's design dialog all these configuration used to save in /conf/your-project/settings/wcm/policies/ path under your project structure name. So if you can add that generated policy as part of your code base, that will solve your problem.

With the help of AEM developer plugin in eclipse or any other available tool you can import that in you code base.

Hope this will help.

Umesh Thakur

 

Answers (1)

Answers (1)

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

09-03-2021

If I remember correctly ; anything done in design mode is saved under /etc/designs/<your-project-name>. I checked the link you mentioned https://experienceleague.adobe.com/docs/experience-manager-64/authoring/siteandpage/default-componen... and it specifies a note which says 

 

NOTE

Design mode is only available for design configurations stored as content under ( /etc).

Starting in AEM 6.4, it is recommended to store designs as configuration data under /apps to support continuous deployment scenarios. Designs stored under /apps are not editable at runtime and the Design mode will not be available to non-admin users for such templates.

 

So I think add the /etc/designs filters into your code package META-INF/vault/filter.xml , it might help you. While we were working with static templates back in the days, the designs used to go into the filters as part of  the code. It's been long since most of us moved away from this , but the principles still remain the same I believe until Adobe still provides the support.

 

Thanks

Veena