내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Editable templates - Component policies are repetitive

Avatar

Level 2

Hi All,

 

It is very repetative to assign component policies across all the editable templates. Early on you will have 5+ editable templates. In larger sites with 50+ page templates, adding a new component and it's style modifiers can take hours.

 

Is there a way to define in the cq_design_dialog a default component policy configuration?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi @davidb86179332 

 

You can

  1. try creating a template type and add all the components that are required there, then create the templates using that template type
  2. If the templates are already created, just add the required policies in your XML files and check in with your code. Even though it is a copy paste job, it would be an one time activity.

Hope this helps.

 

Thanks,

Kiran Vedantam.

원본 게시물의 솔루션 보기

3 답변 개

Avatar

Community Advisor

you can do one thing, instead of addind style policies for each component, you can have one categorie name of all your component specific clientlibs. For example say "myapp.components". 

Embed this to your site client lib. That way, you can you use one single policy at page/template level.

Avatar

정확한 답변 작성자:
Community Advisor

Hi @davidb86179332 

 

You can

  1. try creating a template type and add all the components that are required there, then create the templates using that template type
  2. If the templates are already created, just add the required policies in your XML files and check in with your code. Even though it is a copy paste job, it would be an one time activity.

Hope this helps.

 

Thanks,

Kiran Vedantam.

Avatar

Level 2

Thanks @Kiran_Vedantam I'll try the tempalte type method on the next fresh project