Expand my Community achievements bar.

SOLVED

How to Create a new componentgroup in AEM via a service

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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