7 Replies Latest reply: Jan 20, 2011 5:34 PM by MurraySummers RSS

    Template's gradient won't copy to new pages

    Budo Cat Community Member

      I created a template in DW (CS4) a couple of months ago that I used to build a website of about 75 pages. I tried to add a new page for the first time today. I created the new page from the same template, but discovered that my background gradient has gone AWOL.

       

      It's very strange. Everything else is there, including the solid color that the gradient fades into. And the gradient is still on the template when I look at it in Design view or on a browser. But everytime I create a new page from the template, I only get the solid background color.No gradient.

       

      Stranger (to me, anyway), the gradient URL that's on the template is not the same on the new page. Every new page that I create gets a much longer url for the gradient.

       

      This is what it looks like in the template:

       

      body {
          background-color:#80510F;
          background-image:url(../Root/photos/gradient4.png);
          background-repeat:repeat-x; 
      }

       

      This is what it looks like on the pages I now create from the template:

       

      body {
          background-color:#80510F;
          background-image:url(file:///Macintosh HD/Users/MyName/Desktop/ProjectName/Root/photos/gradient4.png);
          background-repeat:repeat-x;
      }

       

      Can someone please tell me what's going on? Why doesn't the url copy accurately when I create a new document from the template? How do I keep the gradient that I have on the template (and the 75 other pageson my site)?

       

      thank you!

        • 1. Re: Template's gradient won't copy to new pages
          MurraySummers CommunityMVP

           

          This is what it looks like on the pages I now create from the template:

           

          body {
              background-color:#80510F;
              background-image:url(file:///Macintosh HD/Users/MyName/Desktop/ProjectName/Root/photos/gradient4.png);
              background-repeat:repeat-x;
          }

           

          Can someone please tell me what's going on?

           

          If you have not yet SAVED this new child page, then the link should look like this.  How does it look after you save the page within the site?

           

          If it looks the same, then I'm worried about your site definition - is "Root" the root folder for this site?  If it is, then you should NEVER see that folder name appearing in any link on any page.

          • 2. Re: Template's gradient won't copy to new pages
            Budo Cat Community Member

            Hi Murray.

             

            Yes, I saved both pages. I even uploaded them to my site to see if that would make a difference.  It didn't. Still no gradient. And the gradient URL on these two new pages still lists my name, folder, etc. (All of the other pages' url is as it's given in the template).

             

            If it helps, you can see the two pages I'm struggling with here:

             

            http://www.anothersource.org/poncho_1.html#

             

            and

             

            http://www.anothersource.org/poncho_2.html#

             

            (I haven't completely finished either page, so please ignore any notes I made to myself)

             

            As you'll see, every page except these two new ones has the gradient. But all of the other template elements -- eg, page texture, solid bg color -- is included on the new pages.

             

            Thank you for your help. This is driving me crazy.

             

            (And yes, "Root" is the the root folder that holds the folders for my pages, photos, CSS, XML, etc. It doesn't seem to appear on any other link on the site. Again, only on these two new pages.)

            • 3. Re: Template's gradient won't copy to new pages
              MurraySummers CommunityMVP

              On the page where you see the gradient, you have this stylesheet embedded in the head -

               

              <style type="text/css">

              <!--

               

              body {

                  background-color:#80510F;

                  background-image:url(../photos/gradient4.png);

                  background-repeat:repeat-x;

              }

               

              -->

              </style>

               

              On the page where you don't see the gradient, that embedded stylesheet looks like this -

               

              <style type="text/css">

              <!--

               

              body {

                  background-color:#80510F;

                  background-image:url(file:///Macintosh HD/Users/scottmattoon/Desktop/AnotherSource1/Root/photos/gradient4.png);

                  background-repeat:repeat-x;

              }

               

              -->

              </style>

              Try editing the link so that it's the same as the other page and save it.  Does that work?

              • 4. Re: Template's gradient won't copy to new pages
                Budo Cat Community Member

                No, I'm afraid not.

                 

                I went into the template and made that an editable region, then created a child page. That still had the wrong link, so I copied the correct link from the template and pasted it into the new child page. Still no gradient.

                 

                I have even shut down DW in hopes that this was just some kind of glitch. But I still get the same problem with the child page.

                • 5. Re: Template's gradient won't copy to new pages
                  MurraySummers CommunityMVP

                  No - that's NOT the way to do it.

                   

                  The link is correct in the template page?  Try APPLYING the template to that child page again. But first, REMOVE that editable region you added.

                  • 6. Re: Template's gradient won't copy to new pages
                    Budo Cat Community Member

                    Murray,

                     

                    THANK YOU!! That worked.

                     

                    But, any idea why the template gradient wasn't moving to the child page? And is this something to look forward to with every new page I create?

                    • 7. Re: Template's gradient won't copy to new pages
                      MurraySummers CommunityMVP

                      But, any idea why the template gradient wasn't moving to the child page? And is this something to look forward to with every new page I create?

                       

                      Cosmic rays?  I dunno.  It happens rarely.  See if it continues....