5 Replies Latest reply on Aug 31, 2008 6:14 PM by Newsgroup_User

    Templates

    dreamer spiderwoman1 Level 1
      I would like to change the design of some of my pages. They weren't spawned by a template, but now I have a template. Is there anyway to link them to the new template?

      Also, when I check my links sitewide, there are many broken links to one of my templates. I've gone in to fix them, but have been unsuccessful. And it doesn't seem to alter the functionality of the template. If I make a change to the template, it still updates the pages. Do I need to fix the links?

      Is it important to upload templates to your server? I did, but I wasn't sure if I needed to.

      Kate
        • 1. Re: Templates
          dreamer spiderwoman1 Level 1
          I added a new div to my template, but the background color isn't showing up. Also, I don't see any margins. If I add content, will the background color show up?

          Kate
          • 2. Re: Templates
            dreamer spiderwoman1 Level 1
            Here's the code for the template.

            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns=" http://www.w3.org/1999/xhtml">
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>Excellent-maintemplate</title>
            <style type="text/css">
            <!--
            body,td,th {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: medium;
            }
            body {
            background-color: #FF0099;
            }
            a {
            font-size: 90%;
            color: #33FFCC;
            }
            a:link {
            text-decoration: none;
            }
            #container {
            background-color: #CCFFCC;
            height: 1500px;
            width: 780px;
            margin-right: auto;
            margin-left: auto;
            }
            #nav a:hover {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 90%;
            color: #FFFFFF;
            }
            -->
            </style>
            <link href="/css/layout.css" rel="stylesheet" type="text/css" />

            </head>

            <body>
            <div id="container">

            <div id="top">
            <p><!--content for ID top goes here --></p>
            <p> </p>
            <p>Rocking Horse Video</p>
            </div>

            <div id="nav">





            <ul>
            <li><a href="/pages/index.html">Home</a></li>
            <li><a href="/pages/pricing.html">Pricing</a></li>
            <li><a href="/pages/SEHJ 8-08.html">Browse Your Rides</a></li>
            <li><a href="/pages/To Order.html">To Order</a></li>
            <li><a href="../Templates/ http://www.shop.rockinghorsevideo.com">Shopping Cart</a></li>
            </ul>
            <!--content for nav div goes here -->
            </div>


            <!--content for container goes here -->
            <!-- TemplateBeginEditable name="container" -->
            <div id="main">Content for id "main" Goes Here</div>
            container<!-- TemplateEndEditable --></div>
            <!--end container div -->
            </body>
            </html>
            Kate
            • 3. Re: Templates
              Level 7


              > Also, when I check my links sitewide, there are many broken links to one of my
              > templates

              You don't make links TO template files.

              You either Apply a template to an ea New file basxed on a template
              Using File->New->click Template tag->click this site in left column, click
              desired template in right column.

              This code:
              <a href="../Templates/ http://www.shop.rockinghorsevideo.com">Shopping
              Cart</a>

              makes no sense.

              Did you type the link in correctly when making the link?
              <a href=" http://www.shop.rockinghorsevideo.com">Shopping
              Cart</a>

              --
              Alan
              Adobe Community Expert, dreamweaver

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



              • 4. Re: Templates
                dreamer spiderwoman1 Level 1
                So once the page is made you can't apply a template to it?
                Kate
                • 5. Re: Templates
                  Level 7


                  > So once the page is made you can't apply a template to it?
                  > Kate

                  Yes, you can. But it will only work right if you make the entire body area
                  one editable region. That's kind of useless- most templates will have more
                  than one editable region, and will have locked areas such as a
                  header/footer/navigation that will replace similar items on the old pages.

                  Easier is to do this to get existing pages into templated pages:

                  [now is a good time to make a backup copy of the local site folder incase of
                  errors]

                  Create the template.
                  Define the "Editable Areas" in the template for where you want the unique
                  content of each page to be.

                  Then in dw's files panel, rename the old page to something else

                  create a new child page of that template:
                  Using File->New->click Template tag->click this site in left column, click
                  desired template in right column. Save this file with the same filename as
                  the old page had.

                  open both the old and new pages, and copy/paste the unique page contents
                  into the appropriate Editable Areas.

                  Save and upload the new page, delete the old page





                  --
                  Alan
                  Adobe Community Expert, dreamweaver

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