Développer ma barre des réalisations de la Communauté.

Mark Solution

Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.

RÉSOLU

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 solution acceptée

Avatar

Réponse correcte par
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.

Voir la solution dans l'envoi d'origine

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

Réponse correcte par
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