how to save component's design mode configuration in my custom code? | Community
Skip to main content
jayv25585659
Level 8
March 10, 2021
Solved

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

  • March 10, 2021
  • 2 replies
  • 873 views

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-components-designmode.html?lang=en#siteandpage)

 

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.

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 Umesh_Thakur

@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

 

2 replies

Umesh_Thakur
Community Advisor
Umesh_ThakurCommunity AdvisorAccepted solution
Community Advisor
March 10, 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

 

VeenaVikraman
Community Advisor
Community Advisor
March 10, 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-components-designmode.html?lang=en#enable-disable-components 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