Expand my Community achievements bar.

SOLVED

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 Accepted Solution

Avatar

Correct answer by
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

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

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