Enable a component group by default for a template | Community
Skip to main content
Level 2
October 16, 2015
Solved

Enable a component group by default for a template

  • October 16, 2015
  • 4 replies
  • 2712 views

I need to enable a particular component group by default when i create a page with a specific template; without going to design mode and selecting the group.

When author selects it once, it works for all new pages he creates with that template. However, that is not the case when the package is installed in in another CQ environment and the author has to again manually choose the group by going to design mode.

Need a solution to avoid this. Tried referring the content.xml for any properties added after the group is chosen from design mode. But couldn't find.

Kindly help.

Thanks,

Sriram

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 Daniel_Gordon

Hi Sriam,

The design mode configurations will be stored by template under the Design Page specified for the site in a String[] called components. As long as these nodes and properties are packaged with the rest of you code, you should not have to manually choose the group in design mode. Check out the Geometrixx Outdoors Design Page for example: /etc/designs/geometrixx-outdoors/jcr:content/page/par

-Danny

4 replies

smacdonald2008
Level 10
October 16, 2015

I have not done this - i have always set groups manually in the sidekick. However -- i am investigating this use case. 

Daniel_Gordon
Adobe Employee
Daniel_GordonAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi Sriam,

The design mode configurations will be stored by template under the Design Page specified for the site in a String[] called components. As long as these nodes and properties are packaged with the rest of you code, you should not have to manually choose the group in design mode. Check out the Geometrixx Outdoors Design Page for example: /etc/designs/geometrixx-outdoors/jcr:content/page/par

-Danny

Sriram_NAuthor
Level 2
October 16, 2015

Thanks a lot for your answer.

Since i use Subversion (SVN), the added components[] property under /etc/designs/<project-name> gets checked out in any other environment and its working fine. 

But still the issue still persists when trying to add this filter using CRX package manager and installing the package in other environment.

Thanks,

Sriram

Scott_Brodersen
Level 8
October 16, 2015

Danny speaks the truth!

 

dgordon86 wrote...

Hi Sriam,

The design mode configurations will be stored by template under the Design Page specified for the site in a String[] called components. As long as these nodes and properties are packaged with the rest of you code, you should not have to manually choose the group in design mode. Check out the Geometrixx Outdoors Design Page for example: /etc/designs/geometrixx-outdoors/jcr:content/page/par

-Danny