Created

Feb 06, 2013

Add default components in the Sidekick

Posted by Vianney Baron

Lately I've had a few developers come to me with the same question: how do you set the default components appearing in the Sidekick when first opening a page?

It's a legitimate question, switching to Edit mode for every page can be quite annoying, and we don't necessarily want to let the authors decide what components they are allowed to use in a particular Parsys.

However this is quite easy to fix, and here is how.

When building your web site with CQ, you will define a clientlib to store all your graphical assets (JS, CSS and images) as described in this post. But what developers often overlook is the fact that you can also use the clientlib to store meta information, like the list of default components appearing in Sidekick!

To see an example of this navigate to /etc/designs/geometrixx-outdoors/jcr:content/page/par in crxde and look at the properties of the node:

file

Here you see we are using the "components" property, and we're simply listing the components we want to see appearing in the sidekick when we open a page using the page component defined in our Geometrixx Outdoors application (this one: /apps/geometrixx-outdoors/components/page), this will also restrict the number of components your can drag and drop in this specific parsys, which can be really useful when you use different Parsys for different purposes on the same page. Simply put the path of each component in this String array and voila!

One more thing though: you might argue that having to list every single component in there is a bit annoying, but there's actually a way around that. You can directly use groups in there as well:

file

Then it becomes quite obvious that groups should be used as often as possible, especially because they are so easy to setup: simply add a "componentGroup" property to the root of you component and that's it (see here: /apps/geometrixx-outdoors/components/colctrl for example). 

COMMENTS

  • By how to stop getting sick all the time - 6:57 AM on May 31, 2014   Reply
    Here you see we are using the "components" property, and we're simply listing the components we want to see appearing in the sidekick when we open a page using the page component defined in our Geometrixx Outdoors application (this one: /apps/geometrixx-outdoors/components/page), this will also restrict the number of components your can drag and drop in this specific parsys, which can be really useful when you use different Parsys for different purposes on the same page. Simply put the path of each component in this String array and voila!
  • By APK - 10:23 AM on May 31, 2014   Reply
    Many Thanks.
    • By cigars - 9:17 AM on Jun 02, 2014   Reply
      Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic.
    • By henry mauriss website - 12:19 PM on May 31, 2014   Reply
      useful when you use different Parsys for different purposes on the same page. Simply put the path of each component in this String array and voila!
      • By Brendt Amazing Want My Ex Back - 12:28 PM on May 31, 2014   Reply
        Does Brendt Amazing Want My Ex Back System Really Work? Find Out Why So Many Couples Are Using It and Getting Back Together With Their Ex for Good!
        • By Click for information - 2:58 PM on May 31, 2014   Reply
          Does Brendt Amazing Want My Ex Back System Really Work? Find Out Why So Many Couples Are Using It and Getting Back Together With Their Ex for Good!
        • By tidung.net - 4:58 AM on Jun 02, 2014   Reply
          Thanks.
          • By hargaandroid.com - 8:53 AM on Jun 03, 2014   Reply
            Many Thanks.
            • By Cartier Santos 100 replica - 11:40 AM on Jun 05, 2014   Reply
              Does Brendt Amazing Want My Ex Back System Really Work? Find Out Why So Many Couples Are Using It and Getting Back Together With Their Ex for Good!
              • By Visit this link - 8:38 PM on Jun 05, 2014   Reply
                It's a legitimate question, switching to Edit mode for every page can be quite annoying, and we don't necessarily want to let the authors decide what components they are allowed to use in a particular Parsys.
                • By apk - 11:15 AM on Jun 06, 2014   Reply
                  Thanks.
                  • By Rodger - 4:48 PM on Jun 06, 2014   Reply
                    useful when you use different Parsys for different purposes on the same page. Simply put the path of each component in this String array and voila!
                    • ne more thing though: you might argue that having to list every single component in there is a bit annoying, but there's actually a way around that. You can directly use groups in there as well:
                      • By girlfriend in a week review - 11:35 AM on Jun 07, 2014   Reply
                        Here you see we are using the "components" property, and we're simply listing the components we want to see appearing in the sidekick when we open a page using the page component defined in our Geometrixx Outdoors application (this one: /apps/geometrixx-outdoors/components/page),
                        • By cheap air max 1 uk - 6:23 AM on Jun 08, 2014   Reply
                          ne more thing though: you might argue that having to list every single component in there is a bit annoying, but there's actually a way around that. You can directly use groups in there as well:
                          • By Guaranteed Signups - 7:45 AM on Jun 08, 2014   Reply
                            ne more thing though: you might argue that having to list every single component in there is a bit annoying, but there's actually a way around that. You can directly use groups in there as well:
                            • By Jasa SEO - 11:28 AM on Jun 08, 2014   Reply
                              Many Thanks.
                              • By Targeted Adult Traffic - 11:58 AM on Jun 08, 2014   Reply

                                Many Thanks.
                                • By Tattoos - 4:35 PM on Jun 08, 2014   Reply
                                  Many Thanks.
                                  • By step up height - 7:11 AM on Jun 09, 2014   Reply
                                    The product is highly very impressive and I recommend everyone to use it at least for once.
                                    • By girlfriend system by christian h. - 6:27 AM on Jun 11, 2014   Reply
                                      useful when you use different Parsys for different purposes on the same page. Simply put the path of each component in this String array and voila!
                                      • By step up height increaser - 12:17 PM on Jun 11, 2014   Reply
                                        Really i am impressed from this post. The person who created this post is a genius and knows how to keep the readers connected.
                                        • By Jaxon - 12:17 PM on Jun 11, 2014   Reply
                                          useful when you use different Parsys for different purposes on the same page. Simply put the path of each component in this String array and voila!
                                          • By step up height increaser - 4:30 AM on Jun 12, 2014   Reply
                                            Just like others, I am also happy and excited after using Stepup Height Growth. I don't have words to Thank you for the change I have got in my personality after using your product.
                                            • By col3neg original - 4:51 AM on Jun 12, 2014   Reply
                                              the pleasure of having more than a couple of episodes is going to cost you too much.Some legal websites may also allow you to watch and sometimes download episodes for free from col3neg
                                              • By Get your training - 10:00 AM on Jun 12, 2014   Reply
                                                useful when you use different Parsys for different purposes on the same page. Simply put the path of each component in this String array and voila!.......
                                                • By www.viewsboost.com - 12:17 PM on Jun 12, 2014   Reply
                                                  componentGroup" property to the root of you component and that's it (see here: /apps/geometrixx-outdoors/components/colctrl for example
                                                  • By Find trade schools at usatradeschools.com - 3:07 PM on Jun 14, 2014   Reply
                                                    useful when you use different Parsys for different purposes on the same page. Simply put the path of each component in this String array and voila!.......
                                                    • By Best resource - 7:05 AM on Jun 15, 2014   Reply
                                                      ately I've had a few developers come to me with the same question: how do you set the default components appearing in the Sidekick when first opening a page?
                                                      • By for better opportunities - 12:07 PM on Jun 15, 2014   Reply
                                                        ately I've had a few developers come to me with the same question: how do you set the default components appearing in the Sidekick when first opening a page?
                                                        • By having been entrepreneur - 7:09 AM on Jun 16, 2014   Reply
                                                          ately I've had a few developers come to me with the same question: how do you set the default components appearing in the Sidekick when first opening a page
                                                          • By trade school - 8:17 AM on Jun 16, 2014   Reply
                                                            useful when you use different Parsys for different purposes on the same page. Simply put the path of each component in this String array and voila!........
                                                            • By text your ex back - 9:02 AM on Jun 16, 2014   Reply
                                                              Does Brendt Amazing Want My Ex Back System Really Work? Find Out Why So Many Couples Are Using It and Getting Back Together With Their Ex for Good!
                                                              • By best glass iphone 5 screen protector - 7:54 AM on Jun 17, 2014   Reply
                                                                we’re expanding our next meeting to a full day to include sessions around specific customer questions and challenges...
                                                                • By Obat Keputihan - 9:27 AM on Jun 22, 2014   Reply
                                                                  Many Thanks.
                                                                  • By slendera garcinia cambogia - 9:11 AM on Jul 02, 2014   Reply
                                                                    Hats off for publishing this unique comments here, would be used always for best outcomes.
                                                                    • By theme woocommerce - 6:10 AM on Jul 26, 2014   Reply
                                                                      Hats off for publishing this unique comments here, would be used always for best outcomes.
                                                                    • Just like others, I am also happy and excited after using Stepup Height Growth. I don't have words to Thank you for the change I have got in my personality after using your product.
                                                                      • By http://resepyos.jigsy.com/ - 7:56 AM on Jul 04, 2014   Reply
                                                                        i love this content ....
                                                                        • By http://resepmaku.weebly.com/ - 7:58 AM on Jul 04, 2014   Reply
                                                                          I must say your site is really helpful I also love the design, its amazing!. I don’t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds
                                                                          • By Tina Morgan - 11:22 AM on Jul 04, 2014   Reply
                                                                            We Are Offering 50 Manual DoFollow Blog Comments From Actual Page Rank 6 TO 2 !! For Only $$$4$$$$. Try Our Service Once, And You Would Never Want To Go To Any Other Blog Commenting Provider.
                                                                            • By technology news - 8:02 AM on Jul 05, 2014   Reply
                                                                              Does Brendt Amazing Want My Ex Back System Really Work? Find Out Why So Many Couples Are Using It and Getting Back Together With Their Ex for Good!
                                                                              • By airul - 10:49 AM on Jul 06, 2014   Reply
                                                                                Thanks.
                                                                                • By CACU Login - 7:57 AM on Jul 07, 2014   Reply
                                                                                  Just like others, I am also happy and excited after using Stepup Height Growth. I don't have words to Thank you for the change I have got in my personality after using your product.
                                                                                  • By things to do in grenada - 5:58 AM on Jul 08, 2014   Reply
                                                                                    Does Brendt Amazing Want My Ex Back System Really Work? Find Out Why So Many Couples Are Using It and Getting Back Together With Their Ex for Good!
                                                                                    • By Retail Link Login - 7:20 AM on Jul 08, 2014   Reply
                                                                                      Does Brendt Amazing Want My Ex Back System Really Work? Find Out Why So Many Couples Are Using It and Getting Back Together With Their Ex for Good!
                                                                                      • By unique nursey bedding organic - 10:25 AM on Jul 10, 2014   Reply
                                                                                        They were brutally killed yesterday evening by the enemy of the people of Afghanistan who oppose any development support for the rural people of the country.
                                                                                        • By www.crainsnewyork.com - 5:34 AM on Jul 12, 2014   Reply
                                                                                          We Are Offering 50 Manual DoFollow Blog Comments From Actual Page Rank 6 TO 2 !! For Only $$$4$$$$. Try Our Service Once, And You Would Never Want To Go To Any Other Blog Commenting Provider.
                                                                                          • By venus factor reviews - 6:43 AM on Jul 12, 2014   Reply
                                                                                            The enemy of the people of Afghanistan who oppose any development support for the rural people of the country.
                                                                                            • By model baju lebaran - 4:17 PM on Jul 12, 2014   Reply
                                                                                              i really to say nice tools from adobe. i like it.
                                                                                              • By cek tagihan pln - 4:17 PM on Jul 12, 2014   Reply
                                                                                                i really look tools from adobe. i like it.
                                                                                                • By menu buka puasa - 8:46 AM on Jul 15, 2014   Reply
                                                                                                  i really to say nice tools from adobe. i like it.
                                                                                                  • By Yamaha R15 indonesia - 8:46 AM on Jul 15, 2014   Reply
                                                                                                    i really to say nice tools from adobe. i like it.
                                                                                                    • By Fast url opener - 6:06 PM on Jul 15, 2014   Reply
                                                                                                      Actually get pleasure from this fantastic submit that you've got provided for people like us. Fantastic web page along with a wonderful topic also i really find amazed to learn to read this. Its fantastic
                                                                                                      • By Crystal X Asli - 2:41 AM on Jul 17, 2014   Reply
                                                                                                        i really to say nice tools from adobe. i like it.
                                                                                                        • By link m88 - 7:20 AM on Jul 17, 2014   Reply
                                                                                                          Each of them talked highly of their profession and had very good things to say about Mr. Rooter.
                                                                                                          • By NewAmericanJackets - 10:49 AM on Jul 18, 2014   Reply
                                                                                                            The information which you provided in this blog post got a lot of general knowledge. I say thank you for giving interesting material and write in a very professional way. I like your article.
                                                                                                            • By duplichecker - 7:26 PM on Jul 18, 2014   Reply
                                                                                                              Greetings! I know this is somewhat off topic but I was wondering if you knew where I could get a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one? Thanks a lot!
                                                                                                              • By Crystal X Asli - 7:27 PM on Jul 22, 2014   Reply
                                                                                                                i really to say nice tools from adobe. i like it.
                                                                                                                • By personal path to pregnancy - 12:59 AM on Jul 24, 2014   Reply
                                                                                                                  what components they are allowed to use in a particular Parsys
                                                                                                                  • By Martin Diaz - 7:59 AM on Jul 24, 2014   Reply
                                                                                                                    provided in this blog post got a lot of general knowledge. I say thank you for giving interesting material and write in a very professional way...
                                                                                                                    • By Scott Stratten - 12:22 PM on Jul 25, 2014   Reply
                                                                                                                      For more information, any questions and to RSVP, please contact: Christine Duran (cduran at adobe.com) or Mengmeng Niu (nium at adobe.com).
                                                                                                                      • By http://igorledochowski.co.uk/ - 8:27 AM on Jul 27, 2014   Reply
                                                                                                                        say nice tools from adobe. i like it.

                                                                                                                        ADD A COMMENT