9 Replies Latest reply: Feb 1, 2013 5:25 AM by dgtherunner40 RSS

    Template Problem

    artist76

      I've just discovered that I can't change the page titles on pages that were made with a template in Dreamweaver. How do I make the page title an editable region in my Templates so that I can change the titles on my other pages?

       

      What code do I need and exactly where do I put it? I don't know much about coding.

        • 1. Re: Template Problem
          yshivaprasad Adobe Employee

          Hi,

           

          When a Template is created, by default Dreamweaver wraps the Title tag within a Editable Region as shown below.

          If the below heighlighted lines were removed, you can follow below steps to make the title editable in Tempalte Files:

          1. Select the <title>...</title> tag statement

          2. Press keyboard shortcut: Ctrl+Alt+V(on Windows) or Cmd+Option+V(on Mac)

          3. You will be asked to provide a name for the Editable Region, click Ok button in the dialog

          4. Dreamweaver wraps the Title tag statement with the Editable Region tags

          5. Save the Template

          6. Click on Update button in the Update Template Files dialog. This will update all associated files.

           

          <!-- TemplateBeginEditable name="doctitle" -->

          <title>Untitled Document</title>

          <!-- TemplateEndEditable -->

           

           

           

          Regards,

          Yalpi Shiva Prasad

          Adobe Dreamweaver Team

          Adobe Systems Incorporated

          • 2. Re: Template Problem
            MurraySummers CommunityMVP

            This symptom can often result from an improperly made template.  You could encounter such problems in legacy versions (i.e., versions older than CS5, I believe) of DW if you started your template building process with File > New > HTML Template.  In that case, the resulting template would not be structured correctly by omitting those editable regions in the head of the document.  What version of DW are you using, and what process did you follow to create the template? (CS 5, 5.5, and 6 does not have this problem)

             

            Following Prasad's suggestion will allow you to enable editing the title in your child pages.  I would add that you must do this to the TEMPLATE file.  When you save that modified template, all of the child pages will be automatically updated with the new markup.  Before saving the template, however, you want to make sure that there is also a second editable region in the head of the template document called "head".  It is usually above, and close to the </head> tag, e.g.,

             

            <!-- TemplateBeginEditable name="head" -->

            <!-- TemplateEndEditable -->

            </head>

            • 3. Re: Template Problem
              artist76 Community Member

              Hi,

               

              Thanks so much for replying. Sorry I'm just now getting back with you. I'm using Dreamweaver 4. I just tried step:

              2. Press keyboard shortcut: Ctrl+Alt+V(on Windows) or Cmd+Option+V(on Mac)

              And nothing happend at all. Is there another way to get the code in there? ie. is there code I can copy and paste into my code. If so you would have to tell me exactly where to insert it because I don't know code lingo like, "wraping it around whatever..."

               

              Thanks so much for helping me!

               

              -Tracee

              • 4. Re: Template Problem
                artist76 Community Member

                Hi,

                 

                Thanks to you also, for the reply. I sent another post because I still haven't been able to make it work yet. But my question to you is,what is the correct way to make a template in Dreamweaver so that you can edit the titles in the child pages(the first time)?

                 

                -Tracee

                • 5. Re: Template Problem
                  MurraySummers CommunityMVP

                  The correct steps are:

                   

                  1.  Create your page.

                  2.  When ready to save it, use FILE | Save As Template... to save the page as a Dreamweaver Template.

                   

                  Pretty simple, huh?

                   

                  By the way, you say you are using DW4 but do you really mean that or is it DWCS4?  Also, if you can let us see the code on your template page, we can tell you explicitly what changes to make to fix your template and its associated child pages.

                  • 6. Re: Template Problem
                    artist76 Community Member

                    Hi,

                     

                    I actually did mean DW4. I have an old version. Here is the top section of the code from my template file that I used to create my pages. Let me know if you need more. Thanks!

                     

                    <html>
                    <head>
                    <title></title>
                    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                    </head>

                    <body bgcolor="#000000" text="#CCCCCC" link="#FFFFFF" vlink="#999999" alink="#CCCCCC">
                    <p align="center"><img src="../images/Title%20Bar_layers2.gif" width="640" height="80" usemap="#Map" border="0" alt="Tracee Gadson">
                      <map name="Map">
                        <area shape="rect" coords="89,53,170,74" href="../index.html" alt="Home" title="Home">
                        <area shape="rect" coords="344,52,428,83" href="../portfolio.html" alt="Portfolio" title="Portfolio">
                        <area shape="rect" coords="491,53,572,76" href="../contact.html" alt="Contact" title="Contact">
                        <area shape="rect" coords="194,55,291,75" href="../bio.html" alt="Biography" title="Biography">
                      </map>

                    • 7. Re: Template Problem
                      B i r n o u CommunityMVP

                      Murray told you all that you need... once you HTML page will be saved as a template, just wrap your <title> tag by the needed template syntax.

                      did you try ? I don't have a DW4 under hand to test ?... is that it does not work ?

                      • 8. Re: Template Problem
                        MurraySummers CommunityMVP

                        Template syntax and usages changed significantly when Dreamweaver MX was introduced (after DW4).  So you will need to use legacy syntax when you add your editable regions.  Check the code below for how the top section of your TEMPLATE file should look -

                         

                        <html>

                        <head>

                        <!-- #BeginEditable 'doctitle' -->

                        <title></title>

                        <!-- #EndEditable -->

                        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

                        <!-- #BeginEditable 'head' -->

                        <!-- #EndEditable -->

                        </head>

                         

                        DW4's template syntax is the same as what was also used (copied) in GoLive and in FrontPage.  Should you upgrade to a more recent version of DW, your syntax will be recognized by that upgraded version, but the new syntax will not be recognized by DW4, so be careful when you switch.

                        • 9. Re: Template Problem
                          dgtherunner40

                          Thank you so much.  I've been struggling with this all morning as I also (unfortunately) only have a really old version of Dreamweaver, but this worked perfectly.  Thanks for your time and help.