20 Replies Latest reply on Aug 29, 2008 11:27 AM by Newsgroup_User

    BG images don't carry over from template

    tbfa
      Hey, Everyone: I'm wanting to use a nav bar writer (Project 7 Pop Menu Magic) site wide. Since it doesn't come with it's own UI, I thought to make it into a page template.

      I made a simple page from a template, with a header, main and footer DIVs...saved out as template. When I make a page from that template I can't see the bg images in the main div or the footer div, here:

      http://www.3rdstreetphotographic.com/pages/testmenu.html

      Any ideas would be most appreciated....

      todd
        • 1. Re: BG images don't carry over from template
          Level 7

          background-image: url(file:///Macintosh HD/Users/toddbingham/Websites
          Current/3rd Street
          Photographic/web-content/pages/tmplte.images/tempMain.jpg);

          What is the path in the .dwt template file?

          with the template open, any broken paths use File->Check page->check links?

          Is there a reason all the css is in an editable area?

          And- if most of the pages will use the same css for the most part, it would
          be easier to maintain if it was in an external .css file instead of in each
          page's head.

          --
          Alan
          Adobe Community Expert, dreamweaver

          http://www.adobe.com/communities/experts/



          • 2. Re: BG images don't carry over from template
            Level 7
            http://www.adobe.com/go/tn_14452

            Try renaming the tmplte.images folder to something like tmplte_images

            --
            Ken Ford
            Adobe Community Expert - Dreamweaver/ColdFusion
            Fordwebs, LLC
            http://www.fordwebs.com


            "tbfa12345" <webforumsuser@macromedia.com> wrote in message news:g6fdg0$bqh$1@forums.macromedia.com...
            > Hey, Everyone: I'm wanting to use a nav bar writer (Project 7 Pop Menu Magic)
            > site wide. Since it doesn't come with it's own UI, I thought to make it into a
            > page template.
            >
            > I made a simple page from a template, with a header, main and footer
            > DIVs...saved out as template. When I make a page from that template I can't see
            > the bg images in the main div or the footer div, here:
            >
            > http://www.3rdstreetphotographic.com/pages/testmenu.html
            >
            > Any ideas would be most appreciated....
            >
            > todd
            >
            • 3. Re: BG images don't carry over from template
              Michael_Helm
              I'm having the same problem!!!

              1. I've created a template from an existing page.
              2. To create a new page from the template, I go to "Assets" then to "Templates", and when I've located the template I want to create a page from, I right click on it and then click on "New from Template".
              3. The newly created page is missing my header background image and my footer background image. (note: Both can be seen when editing the template itself)
              4. Strangely, I can see that the background images should be there according to the code; however, in the CSS panel, it shows no background image applied for either the header or the footer -basically, the code and the CSS panel are contradicting each other.

              Can someone kindly explain to me, in simple terms, what may be happening? And a solution, if possible, to the problem would be greatly appreciated.

              Sincerely,
              Michael
              • 4. Re: BG images don't carry over from template
                Level 7
                > 3. The newly created page is missing my header background image and my
                > footer
                > background image. (note: Both can be seen when editing the template
                > itself)

                Now save the page. Blammo. Having saved it, DW now knows how to adjust the
                links and everything works.

                --
                Murray --- ICQ 71997575
                Adobe Community Expert
                (If you *MUST* email me, don't LAUGH when you do so!)
                ==================
                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                ==================


                "Michael Helm" <webforumsuser@macromedia.com> wrote in message
                news:g95626$hp1$1@forums.macromedia.com...
                > I'm having the same problem!!!
                >
                > 1. I've created a template from an existing page.
                > 2. To create a new page from the template, I go to "Assets" then to
                > "Templates", and when I've located the template I want to create a page
                > from, I
                > right click on it and then click on "New from Template".
                > 3. The newly created page is missing my header background image and my
                > footer
                > background image. (note: Both can be seen when editing the template
                > itself)
                > 4. Strangely, I can see that the background images should be there
                > according
                > to the code; however, in the CSS panel, it shows no background image
                > applied
                > for either the header or the footer -basically, the code and the CSS panel
                > are
                > contradicting each other.
                >
                > Can someone kindly explain to me, in simple terms, what may be happening?
                > And
                > a solution, if possible, to the problem would be greatly appreciated.
                >
                > Sincerely,
                > Michael
                >
                >

                • 5. Re: BG images don't carry over from template
                  Michael_Helm Level 1
                  Hi Murray~

                  Thanks for the quick response!

                  Unfortunately, saving the document doesn't fix the problem -I've made a habit of saving Dreamweaver docs immediately once they've been created. It does appear thought that the issue lies within the image paths; however, because the page is a "New from Template" page, I can't play with the code/CSS. For the most part Dreamweaver is great about updating links and recognizing file paths, but it seems it's having trouble with any new pages I create from my template.

                  I'm hopeful in thinking there is a fix, I just haven't been able to find it.

                  Any further suggestions would be greatly appreciated!

                  ~Michael
                  • 6. Re: BG images don't carry over from template
                    Level 7
                    There are only two things that would cause these kinds of links -

                    1. If you are linking to a file that is outside of the current site's local
                    root folder, or
                    2. If you are saving the current file outside of the current site's local
                    root folder.

                    Are you doing either?

                    --
                    Murray --- ICQ 71997575
                    Adobe Community Expert
                    (If you *MUST* email me, don't LAUGH when you do so!)
                    ==================
                    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                    ==================


                    "Michael Helm" <webforumsuser@macromedia.com> wrote in message
                    news:g96rob$f8l$1@forums.macromedia.com...
                    > Hi Murray~
                    >
                    > Thanks for the quick response!
                    >
                    > Unfortunately, saving the document doesn't fix the problem -I've made a
                    > habit
                    > of saving Dreamweaver docs immediately once they've been created. It does
                    > appear thought that the issue lies within the image paths; however,
                    > because the
                    > page is a "New from Template" page, I can't play with the code/CSS. For
                    > the
                    > most part Dreamweaver is great about updating links and recognizing file
                    > paths,
                    > but it seems it's having trouble with any new pages I create from my
                    > template.
                    >
                    > I'm hopeful in thinking there is a fix, I just haven't been able to find
                    > it.
                    >
                    > Any further suggestions would be greatly appreciated!
                    >
                    > ~Michael
                    >

                    • 7. Re: BG images don't carry over from template
                      Michael_Helm Level 1
                      Murray~

                      The answer to both your questions is "no".

                      Someone told me the problem is "my image paths are pointing to my hard drive"; they suggested that my site had not been properly defined -I'm not seeing that. If I had defined the site wrong it seems to me that the other images would not be showing either. All my images are in and have been saved to the same "images" folder within the local site root.

                      here's the code from the "New from Template" page I created from the template I made:

                      • 8. Re: BG images don't carry over from template
                        Level 7
                        Show us that same bit of code from the template page, please.

                        --
                        Murray --- ICQ 71997575
                        Adobe Community Expert
                        (If you *MUST* email me, don't LAUGH when you do so!)
                        ==================
                        http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                        http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                        ==================


                        "Michael Helm" <webforumsuser@macromedia.com> wrote in message
                        news:g9708b$jpp$1@forums.macromedia.com...
                        > Murray~
                        >
                        > The answer to both your questions is "no".
                        >
                        > Someone told me the problem is "my image paths are pointing to my hard
                        > drive";
                        > they suggested that my site had not been properly defined -I'm not seeing
                        > that.
                        > If I had defined the site wrong it seems to me that the other images would
                        > not
                        > be showing either. All my images are in and have been saved to the same
                        > "images" folder within the local site root.
                        >
                        > here's the code from the "New from Template" page I created from the
                        > template
                        > I made:
                        >
                        >
                        >
                        > .thrColFixHdr #header {
                        > background-image: url(file:///Macintosh
                        > HD/Users/michaelhelm/Sites/graceunconditional08/images/mainHeader.jpg);
                        > background-repeat: no-repeat;
                        > height: 220px;
                        > }
                        >

                        • 9. Re: BG images don't carry over from template
                          Michael_Helm Level 1
                          Murray~

                          Here's the code form the template page:

                          • 10. Re: BG images don't carry over from template
                            Level 7
                            Spawn a new page from the Template and save it. Let's see that code.

                            --
                            Murray --- ICQ 71997575
                            Adobe Community Expert
                            (If you *MUST* email me, don't LAUGH when you do so!)
                            ==================
                            http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                            http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                            ==================


                            "Michael Helm" <webforumsuser@macromedia.com> wrote in message
                            news:g977pn$rgt$1@forums.macromedia.com...
                            > Murray~
                            >
                            > Here's the code form the template page:
                            >
                            >
                            >
                            > .thrColFixHdr #header {
                            > background-image: url(../images/mainHeader.jpg);
                            > background-repeat: no-repeat;
                            > height: 220px;
                            > }

                            • 11. Re: BG images don't carry over from template
                              Michael_Helm Level 1
                              Here's the code from the new spawn (saved):

                              • 12. Re: BG images don't carry over from template
                                Level 7
                                Impossible. 8(

                                Try this -

                                In site manager, select this site's definition, and EXPORT it. Then REMOVE
                                the site from Site manager. Then IMPORT the definition you just Removed.

                                Work any better?

                                --
                                Murray --- ICQ 71997575
                                Adobe Community Expert
                                (If you *MUST* email me, don't LAUGH when you do so!)
                                ==================
                                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                ==================


                                "Michael Helm" <webforumsuser@macromedia.com> wrote in message
                                news:g979ng$a7$1@forums.macromedia.com...
                                > Here's the code from the new spawn (saved):
                                >
                                >
                                >
                                > .thrColFixHdr #header {
                                > background-image: url(file:///Macintosh
                                > HD/Users/michaelhelm/Sites/graceunconditional08/images/mainHeader.jpg);
                                > background-repeat: no-repeat;
                                > height: 220px;
                                > }
                                >

                                • 13. Re: BG images don't carry over from template
                                  Michael_Helm Level 1
                                  Murray~

                                  Followed your suggestion, but to no avail.

                                  I want to say thank you so much for hanging in there with me! If you can think of anything else I'm here!

                                  ~Michael
                                  • 14. Re: BG images don't carry over from template
                                    Level 7
                                    How many files are in the site?

                                    --
                                    Murray --- ICQ 71997575
                                    Adobe Community Expert
                                    (If you *MUST* email me, don't LAUGH when you do so!)
                                    ==================
                                    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                    ==================


                                    "Michael Helm" <webforumsuser@macromedia.com> wrote in message
                                    news:g97hto$8bs$1@forums.macromedia.com...
                                    > Murray~
                                    >
                                    > Followed your suggestion, but to no avail.
                                    >
                                    > I want to say thank you so much for hanging in there with me! If you can
                                    > think of anything else I'm here!
                                    >
                                    > ~Michael

                                    • 15. Re: BG images don't carry over from template
                                      Michael_Helm Level 1
                                      There are currently 56 files in the site.
                                      • 16. Re: BG images don't carry over from template
                                        Level 7
                                        Would it be possible for you to zip up the template, all dependent files,
                                        and a few child pages and send it to me offline?

                                        forums at great-web-sights dot com

                                        --
                                        Murray --- ICQ 71997575
                                        Adobe Community Expert
                                        (If you *MUST* email me, don't LAUGH when you do so!)
                                        ==================
                                        http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                        http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                        ==================


                                        "Michael Helm" <webforumsuser@macromedia.com> wrote in message
                                        news:g99a6k$70f$1@forums.macromedia.com...
                                        > There are currently 56 files in the site.

                                        • 17. Re: BG images don't carry over from template
                                          Michael_Helm Level 1
                                          Absolutely!

                                          Will do!
                                          • 18. Re: BG images don't carry over from template
                                            Level 7
                                            Thanks - I'll try to get to it this century! 8)

                                            --
                                            Murray --- ICQ 71997575
                                            Adobe Community Expert
                                            (If you *MUST* email me, don't LAUGH when you do so!)
                                            ==================
                                            http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                            http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                            ==================


                                            "Michael Helm" <webforumsuser@macromedia.com> wrote in message
                                            news:g99ca7$97n$1@forums.macromedia.com...
                                            > Absolutely!
                                            >
                                            > Will do!

                                            • 19. Re: BG images don't carry over from template
                                              Michael_Helm Level 1
                                              Any help is greatly appreciated!

                                              Perhaps we delve into this problem to find a solution that will end up helping many!? Or maybe that's just wishful thinking...

                                              ~Michael
                                              • 20. Re: BG images don't carry over from template
                                                Level 7
                                                I'm sure that the solution will be a head smacker when and if I get it.

                                                --
                                                Murray --- ICQ 71997575
                                                Adobe Community Expert
                                                (If you *MUST* email me, don't LAUGH when you do so!)
                                                ==================
                                                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                                ==================


                                                "Michael Helm" <webforumsuser@macromedia.com> wrote in message
                                                news:g99eu6$c2m$1@forums.macromedia.com...
                                                > Any help is greatly appreciated!
                                                >
                                                > Perhaps we delve into this problem to find a solution that will end up
                                                > helping many!? Or maybe that's just wishful thinking...
                                                >
                                                > ~Michael