Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

jayv25585659
Level 6
Level 6

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.

1 Accepted Solution
Umesh_Thakur
Correct answer by
Community Advisor
Community Advisor

@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

 

View solution in original post

2 Replies
Umesh_Thakur
Correct answer by
Community Advisor
Community Advisor

@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

 

View solution in original post

Veena_Vikram
Community Advisor
Community Advisor

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