Applying templates to new pages

Is there anyway to apply a template to a page when it is copied?  for example, a new user registers, and their folder is created with index.php, wihch was copied from a source, which had a template applied to it.  I don't understand why the template wouldn't also be applied to the index.php? I want to be able to update these pages all at once, instead of having to individually update each one.
thanks.

Your Files panel (F8) should look like this:
site - YourSiteName (C:\YourSiteName)
     index.html
     -OtherPages
          page1.html
          page2.html
     -Templates
          template.dwt
If your .dwt file is located in any location other than the Templates folder, it won't work.
Templates are not a server-side technology.  Templates only work on local files in Dreamweaver.
I suggest you open your template and examine the code to ensure it is valid and that the Editable Regions are properly defined.
http://validator.w3.org/
Then open a child page made from that template to ensure it is pointing to the correct Template.dwt file in your Templates folder.
Nancy O.

Similar Messages

  • Apply template to html pages in dreamweaver 2004

    How do I apply a template to html pages in dreamweaver 2004?
    The template has editable regoins. Will this effect it?
    Why do I get an orphan message when I try to apply the
    template to new pages?

    You don't want to apply templates to pages. Instead use FILE
    | New > Page
    from Template > site name > template name, spawn a new
    page, and use this
    page for the content. THis is not really an issue for a brand
    new page, but
    if the page already has content when you apply the template,
    you'll see what
    I mean.
    You are being confused by a) not understanding root relative
    vs document
    relative links, and b) not understanding how DW previews
    files.
    If I have a document with a link to an image that looks like
    this -
    <img src="/images/foo.gif"...
    That's what's called a root relative link.
    If I preview that document in DW, then the browser gets the
    document, sees
    the leading "/" and reads that as the root of the hard drive,
    since the
    browser has no idea where the root of the site is. Thus, the
    image is
    broken in the preview.
    If I have temp files enabled, then DW will secretly convert
    the file being
    previewed into a temporary file, and hand that to the
    browser. This temp
    file has had all root relative links converted to document
    relative links
    (as you will see by looking at the code in the browser), and
    has had all
    include files actually embedded in the page, and has had all
    external CSS
    and js markup embedded in the page. In other words, DW has
    made the
    document into a stand-alone page.
    If you do not have temp files enabled, all of these links
    would be broken on
    preview.
    Now - if you are using root relative links, AND you have temp
    files enabled,
    AND you click away from the previewed document, then all of
    your links will
    be broken, since DW has not made that linked file into a temp
    file. This is
    what you are seeing.
    So - if you want to click away on preview, then you must use
    document
    relative links for the site -
    <img src="../images/foo.gif"... (for example)
    These will still work on preview since the browser knows how
    to determine
    the current file's location and how to follow that path.
    GEDDIT?
    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
    ==================
    "happydreamweaver" <[email protected]> wrote
    in message
    news:[email protected]...
    > How can I apply a template to new pages? I have done the
    following:
    > Apply the template to the pages as follows:1 Select File
    > Open.
    > 2 Browse to and select index.html.
    > 3 Select Modify > Templates > Apply Template to
    Page.
    > 4 Type the title of the page in the Banner Editable
    Region. Type or insert
    > text in the Body Editable Region.
    > 5 Select File > Save.
    >
    > Then when I preview the broswer, I see the html page as
    I should, put when
    > I
    > click to a new page, the new new doesn't have the
    template.
    >
    > Also, when I went to apply the template to a new page, a
    message said that
    > I
    > had orphaned stuff. What does that mean and how can I
    get the template
    > show
    > apply without the hassle.
    >

  • Links in preview don't show template on new page in dreamweaver 2004

    links in preview don't show template on new page in
    dreamweaver 2004?
    I have created new html files using a template, then saved
    the file with a new html name.
    I preview it in my local broswer, the first page I want the
    preview shows uo OK. When I click to link to a new page in my root
    folder, the new page shows up, but not formatted with the template.
    Why and how can I fix this?

    "P@tty Ayers ~ACE"
    <[email protected]> wrote in message
    news:finae3$9vg$[email protected]..
    >
    > "happydreamweaver" <[email protected]>
    wrote in message
    > news:fina1g$9dv$[email protected]..
    >> ?links show new page, but not the template design in
    preview broswer?
    >
    > Not mind reader, need more info. :-)
    Never mind - you already posted this question and got some
    excellent help.
    Patty Ayers | Adobe Community Expert
    www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet

  • Apply Template to existing page problems

    I've coinstructed a Dreamweaver Template (dwt) that I want to apply to existing pages in a web site.  I have onle two editable regions defined right now, "doctitle" and "propertyinfo".  When I try to attach my template to a page,  [modify, templates, apply templates to page, select the dwt file, and click select] I get a window named "Inconsistent Regiopn names" which indicates two other editable regions, "document body" and document head".  I've tried various combinations to the "move content to a new region" and get bad results in that other areas of my page are replaced.
    Is there somethign I have to place in the page to resolve this?  I'm very confused by this issue.

    You're right on again.
    Asking for the "body" and "head" regions threw me off and my tenacity kicked in.  I played with that for hours until I came to the conclusion that producing an "empty" page from a DWT, then constructing each page from those was definitely the way to go.
    Thank you.
    Steve

  • Apply template to many pages

    Hi there,
    I have 100 html pages, and i want to switch the template from
    the old one to a new design. How could I do this quickly without
    opening each single one of them and "applying template" ?
    Thanks

    they already use a template?
    Edit the existing template to what you want.
    Or make a new template, and make sure it has the same exact
    editable regions
    to make it simpler.
    Then, in the Templates folder, rename the old template file
    to something
    else, and click NO to updating pages.
    Then rename the new template to the exact filename the old
    template had.
    then dw menu-->Modify-->Templates-->Update Pages
    > I have 100 html pages, and i want to switch the template
    from the old one to a
    > new design.

  • RH11 applied template to every page

    I opened my online help this morning, and RH11 has applied the template to every page in the file, so I now have a duplicate template when I generate. I need to fix this fast as I have a deadline - I don't know how this happened, but how do I fix it? (IE10, Responsive HTML5).
    Here's a small shot of what it is doing:

    That's a new one! Haven't seen it happen in the northern hemisphere.
    Have you modified the layout in any way? If you have, go to Screen Layouts in Project Setup and create a new Responsive Layout and do not modfiy it. Also create a new SSL layout and use the new Responsive Layout in that. Does the problem still occur?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • InDesign CS5.5 crashes while applying Template to a page

    Hi,
    We installed Adobe InDesign CS5.5. on 10 Windows XP SP3 32-bit workstations with 2 GB RAM. On every computer, when a user tries to apply a template to a page in a .indd document, InDesign immediately shuts down without displaying any error messages. Using the Sysinternals Tools and Dr.Watson, I think that the faulty plugin might be this one: C:\Program Files\Adobe\Adobe InDesign CS5.5\Plug-Ins\Layout\PAGES PANEL.APLN.
    Here's a part of the drwtsn32.log file (the full log can be made available upon request):
    Une exception d'application s'est produite :
            App : C:\Program Files\Adobe\Adobe InDesign CS5.5\InDesign.exe (pid=2844)
            Lorsque : 2012-08-13 @ 14:32:37.017
            Numéro d'exception : c0000005 (violation d'accès)
    *----> Liste des tâches <----*
       0 System Process
       4 Error 0xD0000022
    452 Error 0xD0000022
    508 Error 0xD0000022
    532 Error 0xD0000022
    576 Error 0xD0000022
    588 Error 0xD0000022
    764 Error 0xD0000022
    *----> Suivi arrière de la pile <----*
    WARNING: Stack unwind information not available. Following frames may be wrong.
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Program Files\Adobe\Adobe InDesign CS5.5\Required\LAYOUT.RPLN -
    ChildEBP RetAddr  Args to Child             
    06606b88 0625bf00 00020002 0408010b 0a8b1984 CJKGRID+0x20b55
    0aa2915c 0aa1f130 0aa21a50 0aa1cb90 0aa1ba60 0x625bf00
    0aa1d060 8108244c 000132f9 8b157500 c985044e LAYOUT+0xf130
    8bf18b56 00000000 00000000 00000000 00000000 0x8108244c
    Has anybody ever experienced this issue ? Are there known workarounds ?
    Let me know if you need additionnal information.
    Thank you in advance !
    LR

    Hi,
    I am not sure if this is a "Master Page since we use a French version (the functionnality is  named "Gabarit" in French), so here is a printscreen which shows what our users try to do:
    Immediately after the drop is completed, InDesign shuts down without further notice as described before.
    I fully patched one machine to 7.5.3, rebooted it and it still does not work.
    I know 2 GB is a little bit short, but since this is currently a corporate standard in my customer's organization, I will need to be sure that this is the direct and only cause before any upgrade request can be made.
    Thank you for your help.

  • Apply template to a page already created

    Is there a correct way to apply a template once a page has been created ?
    I have done it several time modifying the source of the page, but when it has binding that can lead to problems.
    What is your recommendation ?

    Hi,
    here's the tag documentation
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_pageTemplate.html
    which also contains an example for how to add this manually:
    <af:pageTemplate id="weather"
      viewid="pagefragments_weatherBox_jspx">
      <f:attribute name="zip" value="94065"/>
      <f:attribute name="description" value="Redwood Shores, CA"/>
      <f:facet name="forecastSummary">
        <af:outputText value="Partly Cloudy"/>
      </f:facet>
      <f:facet name="forecastDetail">
        <af:panelGroupLayout layout="vertical">
          <af:outputText value="72'F"/>
          <af:outputText value="Partly Cloudy"/>
          <af:outputText value="Wind: W at 16 mph"/>
          <af:outputText value="Humidity: 46%"/>
        </af:panelGroupLayout>
      </f:facet>
    </af:pageTemplate>So you add the reference to the templates and then - assuming the template has attributes - add attribute and facet references
    Frank

  • CSS for background image not transfering from template to new page

    I have a gradient .gif in my templates which suddenly no longer transfers from the template to  a new page created from the template.  Everything else about the template transfers.  I'm using Dreamweaver CS5 on a Mac running OS 10.6.  I've pasted the CSS from the template and the new page below.  I've tried the usual voodoo--restart program, restart computer, repair permissions, delete preference file, delete personal configuration file.
    CSS from Template:
    .container {
        background-color: #ececec;
        background-image: url(../images/faux_column.png);
        background-repeat: repeat-y;
        height: 650px;
        width: 650px;
    CSS from page created from Template looks to be the same, but is greyed out in the code, and the background-image entry is not present in the CSS styles inspector:
    .container {
        background-color: #ececec;
        background-image: url(../images/faux_column.png);
        background-repeat: repeat-y;
        height: 650px;
        width: 650px;
    Any suggestions greatly appreciated.

    Unfortunately, I don't yet have a site where I can post the page.  I'm new to this, and doing everything locally for now.
    After careful rechecking, I found that the links for the template and the child were not the same, as you suspected.  So I carefully changed the links to site root relative, which worked for the background CSS in my test image.  I then did the same for all of the links to pages on my site, and checked that all were OK with Link Checker in DW.  I guess that was a mistake, because now most of them don't work when tested in Firefox--I get the message File not found.  Must be doing something wrong.

  • Do not apply Templates for dynamic page

    Hi,
    When i add a tag <ORACLE> ...</ORACLE> then all code before this tag don't displate.(I have viewed source after apply template but did't see code before Oracle tag).
    Could you tell me the way to sovle the problem.
    thanks !
    thangtk

    Dear Candace ,
    - I have a dynamic page that includes oracle tag (<oracle> </oracle>).Run it ok .
    -When i apply my template(user template) then dynnamic don't display all component of Template.
    -I had viwed source code (dynamic+template) .I only see componet code begin <oracle> to end. (contains HTML outside <oracle>..</oracle>) and all code before <oracle>..</oracle> to lose .
    Ex:I have a code
    <html>
    <head>
    <title>
    </title>
    </head>
    <body>
    <table>
    </table>
    <oracle>
    begin
    htp.init();
    htp.p('..');
    end;
    </oracle>
    </body>
    </html>
    run it anh view source then i only see:
    <oracle>
    begin
    htp.init();
    htp.p('..');
    end;
    </oracle>
    </body>
    </html>
    I lose code.
    <html>
    <head>
    <title>
    </title>
    </head>
    <body>
    <table>
    </table>
    I think that Templates don't display ,the same cause.
    I hope you will reply quickly for you.
    thanks very much !
    (sorry ,I write very bad)

  • Templates for New Pages Not Updating

    I am a site admin with 7 Contributors accessing my site via
    Contribute 3. I have created templates for them to use to create
    their new pages. These templates allow them to only edit text; they
    cannot update styles or layout in any way. I have noticed that,
    whenever I make updates to my templates and resave them out onto
    the server, some of my Contributors will pick up the new template
    and some will not. Is there any way to force them to pull the new
    templates? I have asked them to all Refresh Templates before they
    create new ones....they tell me that they have, but they are still
    pulling the old template. This causes an issue because, if they
    pull the old template, I have to open their page in Dreamweaver and
    update the template. Doing this on 30+ pages each month gets quite
    tiring and almost defeats the purpose of Contribute for me. Any
    suggestions on this issue are much appreciated!

    Perhaps - and this is just a guess - the template references
    in the pages have got messed up. Something I've noticed is that
    template names with spaces in them get messed up by Contribute. At
    the top of each web page based on a template is the <!--
    InstanceBegin template=".....dwt" --> tag. If the template name
    in there contains spaces it will sometimes get URL-encoded, i.e.
    spaces become %20, and then Dreamweaver no longer recognizes the
    template name as matching the one you're editing. Best practice
    seems to be a an all character template file name.

  • How to apply Template to added Page?

    I am building a multi-page InDesign document with scripting and each page has a different template.  Obviously, getting the first page set-up with the template is a snap as you just open the template, but when I add the next page using: app.activeDocument.pages.add()  how would I apply a new template for this 2nd page in the document?
    Thanks in advance for any help provided.

    It's possible to make page items or regions conditional on the page not being a page number that you specify.
    Head to your page 0, and look for the relevant item in your conditionals list. Select it and specify your login page number in there and all should be well!
    Ben

  • Apply template to html page

    Hi - I must be missing sth big, I just can't relate a
    template (.dwt) with a page (.htm). Both files are in the same
    folder, the site's associated folder, but the site does not show
    any templates ('no templates' on the 'select template' dialog box).
    But the template IS in the site folder, how can I relate a template
    to a site?
    I'm using Dreamweaver 8 - for the first time

    I'm not sure what your problem is there. What is it you want
    to do to the
    image, and where do you want to do it (in DW or on the
    server)?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "candutherio" <[email protected]> wrote in
    message
    news:[email protected]...
    > Working fine - thanks.
    > The only issue now is making an <img> an editable
    region, so that I can
    > dynamically assign its properties.
    > I have seen that before, don't know why it's not working
    here.
    > This is the line on the template:
    > <div id="left" class="column"><!--
    InstanceBeginEditable
    > name="editImage"
    > --><img class="sideImage" src=""/><!--
    InstanceEndEditable --></div>
    >
    > Thanks again!
    >
    > <!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=iso-8859-1" />
    > <!-- TemplateBeginEditable name="doctitle" -->
    > <title>Untitled Document</title>
    > <!-- TemplateEndEditable -->
    > <!-- TemplateBeginEditable name="head" -->
    > <!-- TemplateEndEditable -->
    > <link rel="stylesheet" type="text/css"
    >
    href="file:///S|/Development/ThomsonFinancial/TFEurope/Dreamweaver
    > Templates/Image+Caption.css"/>
    > </head>
    >
    > <body>
    > <!-- TemplateBeginRepeat name="repeatImage+Caption"
    -->
    > <div class="header"><!-- TemplateBeginEditable
    name="editHeader" -->Header
    > goes here<!-- TemplateEndEditable --></div>
    > <div class="separator"> </div>
    > <div id="container">
    > <div id="center" class="column"><!--
    TemplateBeginEditable
    > name="editCaption" -->Image caption goes here<!--
    > TemplateEndEditable --></div>
    > <div id="left" class="column"><!--
    TemplateBeginEditable
    > name="editImage"
    > --><img class="sideImage" src=""/><!--
    TemplateEndEditable --></div>
    > <div id="right" class="column"></div>
    > </div>
    > <div class="separator"> </div>
    > <!-- TemplateEndRepeat -->
    > </body>
    > </html>
    >

  • Background does not appear after applying template

    CS4
    template defined and saved in template folder.
    when applying template to new html page, all transfers but background image does not appear, url is in code but does not find file. any ideas???
    body {
    background-image: url(file:///F|/projects/BBMD Projects/bbmd site v2/images/bridgelv2.jpg);
    background-repeat: no-repeat;
    background-color: #D2D2D2;
    background-attachment: fixed;
    background-position: 75px top;
    height: 400px;
    width: 600px;
    position: inherit;
    overflow: scroll;
    top: auto;
    left: auto;
    right: inherit;
    font-family: "Lucida Console", Monaco, monospace;
    font-size: small;
    font-style: normal;
    color: #000;
    border-top-style: none;
    text-align: left;
    vertical-align: top;
    bottom: auto;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;

    template defined and saved in template folder.
    when applying template to new html page, all transfers but background image does not appear, url is in code but does not find file. any ideas???
    If this is a new site and a newly created template, you DON'T need to 'apply' the template.
    The best way to create new child pages is to :
    FILE>New>Page from Template
    There will be a list of any templates you've created, select the correct one and press create.  Child page created :-)
    Save as newpagename.html  (not inside the Template folder though !)
    PS;  as others have pointed out, the link to the background image is incorrect it's pointing to your harddrive.  Is the file within the defined site working folder?
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

  • Detatch template from all pages

    I have about 300+ pages and 1 Template. I would like to
    detatch the template from all pages and delete it. I will no longer
    be using a template on this site.

    P.S.   There seems to be something wrong with this forum software, at least  for me.  After I write this and hit Post, it says "There was an error,  please check below        ", where it says I can't post a blank  message.  I cut it and paste it back and it then works.
    Sorry - I hate this forum software passionately.  And thankfully, I'm not responsible for it!  You would have to direct these comments to Adobe's Customer service.
    As an example, the metatags remain from the template, if I had them in an editable region.
    The more important issue to me is:
    When    I said I wanted to remove ALL tags, I meant all the tags in the    documents, including style, font, heading, etc. I would like only    paragraph tags to remain.
    The objective is to take    pages that are built on a template and move them into a new template    with new styling.  Unfortunately, the author has loads of style/class    tags that need to be removed.  I want to start over by creating a new    template with new styles and taking the content from the original    editable regions, removing all the tags, putting it in the new   template,  and then adding the new style tags.
    Perhaps there is a simple way to do this?
    How many pages are you talking about here?  The only way to do it under the conditions you are describing would be to create your template, spawn new pages from it, copy content only from the old pages and paste it into the new pages, and then save the new page with the old page's name.

Maybe you are looking for