Created

Jun 30, 2013

The DesignImporter component

Posted by Feike Visser

In almost every CQ-project you get a question like 'but I want to style this page *now* to match the new marketing campaign', or 'can't we have a component where I can enter HTML'?

With these questions you always have to think twice how to implement this, and also if you even want to have this available for the author. But from the author side it makes sense to have tooling available that can react quickly on design-changes without have to (re)deploy code.

Now with 5.6.1 you have the 'DesignImporter' component that can help you with these questions.

In this blogpost I will guide through the process how to do this, and the nice thing is...no coding involved.

DesignImporter, what is it?

If I would need to explain it in once sentence I would go for: "The DesignImporter-component lets you import a complete HTML-design (css/js/images/html) inside a part of your page"

I have prepared a simple example to demonstrate how the DesignImporter works, let's first enable the component on this Geometrixx demo page: http://localhost:4502/cf#/content/geometrixx/en/toolbar.html

Go to the Design-mode and enable the DesignImporter component, when you have done that drag the component onto the page.

The two images below show you the steps.

designimporter_1
designimporter_2

Import your design

Now you can import your design into your page, I have prepared this design-file. Either double-click on the ZIP-logo or drag the file on the component.

When you have done this you will see this appearing on the page.

designimporter_3

As you can see a new design is now available inside your existing page, and the best thing for the author....: no coding involved.

Let's have a further look

If you hoover over the items you will see that actually we have now three components: title, image and text component.

When you go to the details of the image you see that it already has a title and alt-text.

designimporter_4

How does it work?

So you are wondering what is then inside the zip-file, so let's have a look.

index.html -> contains the HTML that is imported, with the special cq-ids the hint to cq to create components

img-folder -> contains the images

css-folder -> contains the css-files

Here you see an overview on the special ids used inside the index.html file.

is the starting point for the import process
This points to the title-component
points to the image component
points to the text component
Photo of Polar Brake Goggles Image component that specifies the alt-text and title

Other options available:

In the sample that I used the HTML-file pointed to the standard components (title, image, text). If you want to use your own components in the design-file you can do this like this.

Use your own components

custom component

COMMENTS

  • By APK - 10:18 AM on May 31, 2014   Reply
    Many Thanks.
  • By National Benefit Authority - 1:23 PM on May 31, 2014   Reply
    In the sample that I used the HTML-file pointed to the standard components (title, image, text). If you want to use your own components in the design-file you can do this like this.
    • By how can i lose weight after pregnancy fast - 5:58 AM on Jun 01, 2014   Reply
      Lean Moms Fast Fat Loss Success Program: Lacy Arnold Reveals Her 3 Weirdly Effective "Female Fat Loss Factors" That Help You Torch Body Fat, Tone Muscles, Drop A Dress Size (Or Three), And Start Looking And Feeling Fabulous Again Post Pregnancy!... Written for consumers by a consumer, this fan site includes a fun and informative Lean Moms Fast Fat Loss Success Program review, ebook FAQ, and PDF download guide that provides an insider's look at the program and answers frequently asked questions about Lacy Arnold's unique and highly popular step-by-step workout guide for busy moms.
      • By tidung.net - 4:55 AM on Jun 02, 2014   Reply
        Thanks.
        • By hargaandroid.com - 8:49 AM on Jun 03, 2014   Reply
          Many Thanks.
          • By daftar facebook - 2:59 AM on Jun 05, 2014   Reply
            that is an amazing tips about toolbar. i will keep on my mind, thanks
            • By apk - 11:09 AM on Jun 06, 2014   Reply
              Thanks.
              • By Email Marketing - 12:04 PM on Jun 07, 2014   Reply
                that is an amazing tips about toolbar. i will keep on my mind, thanks
                • By Jasa SEO - 11:18 AM on Jun 08, 2014   Reply
                  Many Thanks.
                  • By Tattoos - 4:32 PM on Jun 08, 2014   Reply
                    Many Thanks.
                    • By Commentmaster - 8:19 PM on Jun 09, 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 Top Cash Back Sites - 11:06 AM on Jun 10, 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 foto Wedding - 3:48 PM on Jun 11, 2014   Reply
                          i really to say nice tools from adobe. i like it.
                          • By find - 7:40 AM on Jun 12, 2014   Reply
                            i really to say nice tools from adobe. i like it.
                            • By find - 7:41 AM on Jun 12, 2014   Reply
                              i really to say nice tools from adobe. i like it.
                              • By Get your training - 7:52 AM on Jun 12, 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 Darren - 7:45 PM on Jun 13, 2014   Reply
                                  Very cool information; much appreciated!
                                  • By GO here! - 7:23 AM on Jun 15, 2014   Reply
                                    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
                                    • By best iphone 5c screen protector - 8:09 AM on Jun 17, 2014   Reply
                                      In this webinar, we will continue the exciting conversations around “mobile,” focusing on the ability to deliver relevant experiences across the multitude of mobile and tablet devices available today.dfag
                                      • By Obat Keputihan - 9:21 AM on Jun 22, 2014   Reply
                                        Many Thanks.
                                        • By how to potty train a toddler boy in 3 days - 8:25 PM on Jun 22, 2014   Reply
                                          Design-mode and enable the DesignImporter component, when you have done that drag the component onto the page.
                                          • By remonline.com|Real Estate Magazine Online - 9:55 AM on Jun 25, 2014   Reply
                                            In the sample that I used the HTML-file pointed to the standard components (title, image, text). If you want to use your own components in the design-file you can do this like this.
                                            • By Buy high pagerank Backlinks - 3:58 PM on Jun 29, 2014   Reply
                                              The new talent system makes every decision difficult. Well, maybe excepting tier 1 of Monk, which seems pretty obvious for PvE.
                                              • By airul - 10:44 AM on Jul 06, 2014   Reply
                                                Thanks.
                                                • By rhinoplasty specialist - 4:58 AM on Jul 10, 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 the venus factor book - 7:15 AM on Jul 12, 2014   Reply
                                                    In the sample that I used the HTML-file pointed to the standard components (title, image, text). If you want to use your own components in the design-file you can do this like this.
                                                    • By model baju lebaran - 4:21 PM on Jul 12, 2014   Reply
                                                      i really to say nice tools from adobe. i like it.
                                                      • By Fast url opener - 5:42 PM on Jul 15, 2014   Reply
                                                        Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good.
                                                        • Component are always important in every aspect of development
                                                          • By atlanta freedom limousine service - 6:07 PM on Jul 17, 2014   Reply
                                                            this is the way to do it
                                                            • By duplichecker - 6:57 PM on Jul 18, 2014   Reply
                                                              retty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
                                                              • By Site for Chandeliers - 12:28 AM on Jul 19, 2014   Reply
                                                                There is amazing things in this site and I really love it and the fact that we could see the chandelier in the page that I am reading.
                                                                • By important site - 11:36 AM on Jul 20, 2014   Reply
                                                                  Recently, Messi's father suddenly posted information forum on media quite shocked that Leo is feeling overloaded and hard to ensure the M88 play well in the remaining matches in the 2014 World Cup.
                                                                  • By dui lawyer montgomery county pa - 5:26 PM on Jul 21, 2014   Reply
                                                                    under age drinking and dui is common problem these. One must receive legal representation for this.
                                                                    • By philadelphia seo company services - 8:17 PM on Jul 21, 2014   Reply
                                                                      Winning is the way to be and the way to win on the internet is thru seo
                                                                      • By important link - 7:21 AM on Jul 22, 2014   Reply
                                                                        The target is to book draw your website and also keep evaluating intended for brand-new details.
                                                                        • By Crystal X Asli - 7:43 PM on Jul 22, 2014   Reply
                                                                          i really to say nice tools from adobe. i like it.
                                                                          • By replacement birth certificate - 4:20 AM on Jul 24, 2014   Reply
                                                                            Great Post.. Component are always important in every aspect of development
                                                                            • By Apostille Stamps - 4:21 AM on Jul 24, 2014   Reply
                                                                              Interesting Post.. Component are always important!!
                                                                              • By Rae Hoffman - 12:32 PM on Jul 25, 2014   Reply
                                                                                retty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
                                                                                • By Lunatik promo code - 10:35 AM on Aug 04, 2014   Reply
                                                                                  Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. Analytics shows they are coming to the site but I have a feeling “nobody wants to be first”.
                                                                                  • By harga laptop - 7:03 PM on Aug 06, 2014   Reply
                                                                                    thanks for sharing
                                                                                    • By dui lawyer montgomery county pa - 2:32 PM on Aug 07, 2014   Reply
                                                                                      not drinking and driving is the best way to go
                                                                                      • By cara agar cepat hamil - 12:56 PM on Aug 12, 2014   Reply
                                                                                        I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
                                                                                        • By Anonymous - 12:52 AM on Aug 15, 2014   Reply
                                                                                          Hello!
                                                                                          • By Anonymous - 12:53 AM on Aug 15, 2014   Reply
                                                                                            Hello!
                                                                                            • By Anonymous - 12:53 AM on Aug 15, 2014   Reply
                                                                                              Hello!
                                                                                              • By Anonymous - 12:54 AM on Aug 15, 2014   Reply
                                                                                                Hello!
                                                                                                • By Anonymous - 10:46 PM on Aug 15, 2014   Reply
                                                                                                  Hello!
                                                                                                  • By Anonymous - 10:46 PM on Aug 15, 2014   Reply
                                                                                                    Hello!
                                                                                                    • By Anonymous - 10:47 PM on Aug 15, 2014   Reply
                                                                                                      Hello!
                                                                                                      • By Anonymous - 10:47 PM on Aug 15, 2014   Reply
                                                                                                        Hello!
                                                                                                        • By Anonymous - 10:47 PM on Aug 15, 2014   Reply
                                                                                                          Hello!
                                                                                                          • By Anonymous - 8:27 PM on Aug 16, 2014   Reply
                                                                                                            Hello!
                                                                                                            • By Anonymous - 8:29 PM on Aug 16, 2014   Reply
                                                                                                              Hello!
                                                                                                              • By Anonymous - 8:29 PM on Aug 16, 2014   Reply
                                                                                                                Hello!
                                                                                                                • By Anonymous - 8:30 PM on Aug 16, 2014   Reply
                                                                                                                  Hello!

                                                                                                                  ADD A COMMENT