How to Create a new componentgroup in AEM via a service | Community
Skip to main content
Level 2
November 2, 2015
Solved

How to Create a new componentgroup in AEM via a service

  • November 2, 2015
  • 1 reply
  • 1035 views

Hi All,

We have a requirement where we have selected list of components which we need to display in side kick. Since AEM provides OOTB design functionality but our requirement is to read a configuration where list of components has been defined and based on that create a new component group and display it in sidekick by modifying the default design of the page template.

Please let me know if anyone has come up with such requirement or have created component Group pro-grammatically.

Thank you,

Regards,

Shikha

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 Lokesh_Shivalingaiah

Hi Shikha,

Grouping of components should not be driven dynamic. You need to mentioned the component group when you create the components and group the components logically based on a criteria may be feature wise, site wise etc..

Now, once you have the component groups and the components in the group, then you can control what components needs to be displayed/enable on a page/template. So when author creates a page, then all the components for that template would be displayed.

Also, before customizing all of that programmatically, we will have to think why this approach doesnt work and also is it worth customizing so much !

Please give us your use case aswell so that we can see if there is any better approach for the same.

 

Thanks,

Lokesh

1 reply

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
November 2, 2015

Hi Shikha,

Grouping of components should not be driven dynamic. You need to mentioned the component group when you create the components and group the components logically based on a criteria may be feature wise, site wise etc..

Now, once you have the component groups and the components in the group, then you can control what components needs to be displayed/enable on a page/template. So when author creates a page, then all the components for that template would be displayed.

Also, before customizing all of that programmatically, we will have to think why this approach doesnt work and also is it worth customizing so much !

Please give us your use case aswell so that we can see if there is any better approach for the same.

 

Thanks,

Lokesh