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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Editable templates - Component policies are repetitive

davidb86179332
Level 2
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 Accepted Solution
Kiran_Vedantam
Correct answer by
Community Advisor
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.

View solution in original post

3 Replies
BattiniSravan
Level 4
Level 4

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.

Kiran_Vedantam
Correct answer by
Community Advisor
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.

View solution in original post