ANN: Tutorial on Replacing Multiple or Single Templates in DW on   Child Pages

FYI: this article is available for free reprints, as long as
guidelines are
followed:
http://www.petersonsales.net/tutorial1.php
Replacing Old Website Templates in Dreamweaver
One of the most difficult tasks for a web designer is
updating legacy
websites. Legacy websites are websites which have existed for
many years.
Often these sites have outdated code or are badly in need of
an upgrade. For
years, Dreamweaver has used templates to allow an entire site
to be updated
at once simply by making changes to a master page. But what
do you do when
the template itself was developed with outdated code and the
site needs a
complete design overhaul? How do you fix it without having to
cut and paste
the content from every existing page to a newly designed one?
Part 1 - Overwriting a Single Template
Part 2 - Replacing Multiple Templates with One
~~~~~~~~~~~~
Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.com

What Ken has said also applied to
<img src="/assets/images/Lights/lights_select.jpg" width="400" height="400" alt="Lighting Thumbnails" />
which look for the JPG in http://davidcoshdesign.com/assets/images/Lights/lights_select.jpg rather than http://davidcoshdesign.com/nea/assets/images/Lights/lights_select.jpg
Gramps

Similar Messages

  • CS5 templates not updating unless "child" pages are open.

    When I edit the template, the only way I can get Dreamweaver to update the pages is to open all the pages connected to the template. Any help would be appreciated.

    MarilynWalker wrote:
    Murray - Can share your book title with us, please?
    Sure. It's Dreamweaver MX Templates by Brad Halstead and myself - ISBN 0-7357-1319-7.  I spend quite a bit of time explaining nested templates.  Sadly, nowhere do I say you should avoid them.  But you should.
    There is a master template that controls top level navigation and then five child templates that give different left-side navigation based on which section of the site the user is in. You can see this in action at www.homerenergy.com.
    You should see how easy this is to do with server-side includes and a single template file.  It's the best of both worlds.
    You can see this in action at www.homerenergy.com.
    Yep.  http://validator.w3.org/unicorn/check?ucn_uri=http://www.homerenergy.com/&ucn_task=conform ance - even if you would leave the nested templates in place, you would sure want to fix those.
    The section-specific navigation is very easy to manage either with template conditionals or with server-side includes.  You can see this site - http://www.ent-sys.com - where I have done the section navigation on interior pages with template conditionals.
    However, your site is small, and simple.  Nested templates can work OK in such circumstances.  But I have never seen a use of nested templates that couldn't be done more simply with some other approach.

  • Instancebegin template populating twice in child pages

    I just made a change to my template for my site in Dreamweaver. I simply added the Google Analytics snippet to my head section, but now when it goes to update my child pages I get an error in line 1 stating "Unbalanced InstanceBegin tag" and the pages don't update. I looked at the code in one of my child pages and somehow instancebegin is now in twice. Here is a snippet of those first lines from a child page:
    <!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" --><!DOCTYPE html>
    <!--[if IE 8]>                                          <html class="no-js lt-ie9" lang="en" > <![endif]-->
    <!--[if gt IE 8]><!--> <html class="no-js" lang="en" ><!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" --> <!--<![endif]-->
    How can I eliminate one of those "<!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" -->"? How did it get in there in the first place? Any help is appreciated!
    Update: On a side note, I tried opening a child page in textedit and deleting one of those snippets and it came back the next time I saved the template and pushed the change to the pages, so I am still looking for a way to fix this issue...

    Extra - I can see what's happening here, I think. The code is being expanded when it's copied to the child, so it's repeating the internal call to itself (randomImages is called from inside itself).  I got this code from a Dreamweaver tutorial, and it works perfectly well in a page that's not the child of a template.
    Can I prevent the code being expanded somehow? If not, can I edit the code that's copied from the template somewhere?
    Frances

  • Modifying a template resulted in all child pages with repeating editable regions - Help !

    Good morning,
    I have recently been appointed to update a website designed in Dreamweaver by an employee who is no longer here. I have read books on the software and practiced an insane amount which permitted me to update child pages, links, documents etc... however:
    I was asked to add a new button to an "non-editable" region of a template. Trying to do so resulted in a massive mess (with massive anxiety).
    Even thou the new template had all the same text and editable regions, all my pages look completely different from the template itself. The editable regions appears 2-3 times in different locations ex: Header is showed on the bottom, top etc... and the Editable region titles (EditableRegion1 etc...) repeat themselves as well.
    I really need help and not sure what to do, I have tried everything and I am only making it worse and worse. All I want/need is for all my html pages created with this template, match the template.
    Please note that this site is local, not online.
    Since I noticed on other threads that the code is needed; here it is:
    <!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>QMS: AFM</title>
    <style type="text/css">
    <!--
    body  {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #666666;
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
    background-color: #D7D7D7;
    background-repeat: repeat-x;
    border-top-color: #066;
    border-right-color: #066;
    border-bottom-color: #066;
    border-left-color: #066;
    /* Tips for Elastic layouts
    1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
    2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
    3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
    .twoColElsLtHdr #container {
    width: 46em;  /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
    border: 30px none #C4C4C4;
    text-align: left; /* this overrides the text-align: center on the body element. */
    padding-left: 10px;
    background-color: #FFF;
    border-top-color: #C4C4C4;
    border-right-color: #C4C4C4;
    border-bottom-color: #C4C4C4;
    border-bottom-style: outset;
    border-left-style: outset;
    border-top-width: thick;
    border-right-style: outset;
    border-top-style: outset;
    border-left-color: #C4C4C4;
    border-right-width: thick;
    border-bottom-width: thick;
    border-left-width: thick;
    .twoColElsLtHdr #header {
    padding: 0 10px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    background-color: #FFF;
    .twoColElsLtHdr #header h1 {
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    /* Tips for sidebar1:
    1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
    2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width.
    3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".twoColElsLtHdr #sidebar1 p" rule.
    .twoColElsLtHdr #sidebar1 {
    float: left;
    width: 12em; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 0; /* top and bottom padding create visual space within this div */
    background-color: #066;
    background-repeat: repeat-x;
    border-top-width: thin;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    border-right-width: thin;
    border-bottom-width: thin;
    border-left-width: thin;
    color: #FFF;
    padding-left: 0px;
    clear: left;
    .twoColElsLtHdr #sidebar1 h3, .twoColElsLtHdr #sidebar1 p {
    margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
    margin-right: 10px;
    background-color: #066;
    text-decoration: inherit;
    /* Tips for mainContent:
    1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
    2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
    3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
    4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
    .twoColElsLtHdr #mainContent {
    margin: 0 1.5em 0 13em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */
    color:#069;
    background-color:#FFF;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    .twoColElsLtHdr #mainContent a:link {
    text-decoration: none;
    color: #069;
    .twoColElsLtHdr #mainContent a:visited {
    text-decoration: none;
    color: #069;
    .twoColElsLtHdr #mainContent a:hover {
    text-decoration: underline;
    color: #069;
    background-color:#FFF
    .twoColElsLtHdr #mainContent a:active {
    text-decoration: none;
    color: #069;
    .twoColElsLtHdr #footer {
    padding: 0 10px;
    line-height: 0pt;
    color: #069;
    background-color: #FFF;
    font-size: 10px;
    .twoColElsLtHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    background-color: #FFF;
    /* Miscellaneous classes for reuse */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    h1 {
    color: #069;
    font-size: 16px;
    border-top-color: #069;
    border-top-width: thin;
    border-right-width: thin;
    padding-right: 0px;
    padding-left: 0px;
    body,td,th {
    font-family: verdana;
    text-decoration: none;
    color: #069;
    border-top-color: #069;
    border-right-color: #069;
    border-bottom-color: #069;
    border-left-color: #069;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-width: thin;
    border-right-width: thin;
    border-bottom-width: thin;
    border-left-width: thin;
    a:link {
    text-decoration: none;
    color: #FFF;
    a:visited {
    text-decoration: none;
    color: #FFF;
    a:hover {
    text-decoration: underline;
    color: #FFF;
    background-color: #;
    background-repeat: repeat-x;
    background-position: center;
    border-top-color: #069;
    border-right-color: #069;
    border-bottom-color: #069;
    border-left-color: #069;
    a:active {
    text-decoration: none;
    color: #FFF;
    border-color: #FFF;
    padding-left: 20px;
    -->
    </style><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColElsLtHdr #sidebar1 { padding-top: 30px; }
    .twoColElsLtHdr #mainContent { zoom: 1; padding-top: 15px; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <link href="file:///U|/AFM/Dreamweaver/Left sidebar.css" rel="stylesheet" type="text/css" />
    </head>
    <body link="#006699" class="twoColElsLtHdr">
    <div id="container">
    <div id="header">
        <h1><img src="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/Graphics/menubar/pwgsc-e.gif" width="364" height="33" align="left" alt="wordmark" /><img src="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/Graphics/menubar/wordmark_canada.gif" width="83" height="21" align="right" alt="wordmark2" /></h1>
        <p> </p>
        <p><img src="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/Graphics/menubar/AFM QMS banner.jpg" width="709" height="80" alt="banner" border="0"/><a href="mailto:[email protected]"><img src="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/Graphics/menubar/Contactus-e.JPG" width="110" height="21" alt="contactus-e" border="0" /></a><img src="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/Graphics/menubar/French-e.JPG" width="115" height="21" alt="french-e" border="0" /> <a href="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/Continual Improvement/QMSTeamMembers-e.html"><img src="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/Graphics/menubar/Help-e.JPG" width="115" height="21" alt="help-e" border="0" /> <img src="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/Graphics/menubar/Search-e.JPG" width="115" height="21" alt="search-e" border="0" /></a><a href="http://source.tpsgc-pwgsc.gc.ca"><img src="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/Graphics/menubar/thesource.jpg" width="120" height="21" alt="TheSource" border="0" /> <img src="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/Graphics/menubar/Home-e.jpg" width="104" height="21" alt="home-e" border="0" /></a></p>
        <p> </p>
      </div>
    <div class="twoColElsLtHdr" id="sidebar1">
        <p><a href="../QMS HOME/QMSHome-e.html"><strong>QMS Home</strong></a></p>
        <hr />
        <p><a href="../ABOUTAFM/AboutAFM-e.html"><strong>About AFM</strong></a></p>
    <hr />
    <p><a href="../AdminProcedures/AdminProcedure-e.html"><strong>Administrative Procedures</strong></a></p>
    <hr />
    <p><a href="../BusinessUnits/BusinessUnits-e.html"><strong>Business Units</strong></a></p>
    <hr />
    <p><a href="../POINTSOFINTEREST/pointsofinterest-e.html"><strong>Points Of Interest</strong></a></p>
    <hr />
    <p><a href="../Achievements/Achievements-e.html"><strong>Achievements</strong></a></p>
    <hr />
    <p><strong><a href="../MeasuringPerformance/measuringperformance-e.html">Measuring Performance</a></strong></p>
    <hr />
    <p><a href="../References/references-e.html"><strong>References</strong></a></p>
    <hr />
    <p><a href="file:///P|/RPS/AFMS/Quality Management System/QMS Site/HTML/ContinualImprovement-e.html"><strong>Continual Improvement</strong> </a></p>
    </div>
    <div id="mainContent">
        <h2>Header</h2>
        <p>Paragraph</p>
        <h1>Sub Header </h1>
        <p> </p>
        <h1> </h1>
        <h2> </h2>
        <h1> </h1>
        <p> </p>
        <h2> </h2>
        <!-- end #mainContent -->
      </div>
      <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
           <br class="clearfloat" />
      </p>
      <div id="footer">
        <hr width="100%" size="8" noshade="noshade" color="#006666" id="color=&quot;069&quot;" colour="#069"/>
        <p><strong>Maintainted by: ASQM </strong></p>
        <p><strong>Date Modified: 2013-03-25</strong></p>
        <!-- end #footer -->
      </div>
      <script type="text/javascript">
    <!--
    //-->
    </script>
      </h3>
        <!-- end #container -->
    </h3>
    </div>
    <script type="text/javascript">
    <!--
    //-->
    </script>
    </body>
    </html>

    I am not suprised, the previous employee tried to recreate the English version of the site in another folder structure and did not change all links and was still using a template in the wrong location.
    I think I created the mess by trying to modify the existing template's non-editable region in order to add a new button. When trying to update all the pages, the fiasco started.
    Do you think the best option would be to create a new template in the correct folder structure and apply it? Would it fix the current pages or will I have to fix them all manualy on by one?
    I understand it is difficult to deal with a newbie of my magnitude and thanks again.

  • Template do not update child pages

    I really do not understand why this happens to me all the time.
    I had this problem when I was using windows/pc with previous version of dreamweaver many years ago.
    I had the same one, now that I am using mac and dreamweaver cs4.
    In the past, I created a template, with one editable region. Based on this template, I created many pages.
    For some time, everything worked ok, every change in editable region of template forced all child pages to reflect to this change too.
    Now, this do not happen anymore(once again as I said).
    I cannot understand why this happens. 118 files examined, 0 files updated. Why? What am I doing wrong? Is this a bug in dreamweaver that lasts for years?
    I 've done nothing to detach the pages from template, ever. Why it stoped the updating of child file?
    Can anybody please help me?

    giugiugiugiugiugiugi wrote:
    I really do not understand why this happens to me all the time.
    I had this problem when I was using windows/pc with previous version of dreamweaver many years ago.
    I had the same one, now that I am using mac and dreamweaver cs4.
    In the past, I created a template, with one editable region. Based on this template, I created many pages.
    For some time, everything worked ok, every change in editable region of template forced all child pages to reflect to this change too.
    Now, this do not happen anymore(once again as I said).
    I cannot understand why this happens. 118 files examined, 0 files updated. Why? What am I doing wrong? Is this a bug in dreamweaver that lasts for years?
    I 've done nothing to detach the pages from template, ever. Why it stoped the updating of child file?
    Can anybody please help me?
    You say "every change in editable region of template forced all child pages".  This is NEVER how DW has operated.  It's only changes to NON-EDITABLE regions that are propagated to child pages.  I suspect that this misunderstand is what is causing you trouble, but if not, read this -
    Here are seven common mistakes that will result in changes not propagating from Template to child -
    1.  Rename the Templates folder
    2.  Move the Templates folder to some other folder level in the site other than root level
    3.  Move a template out of the Templates folder.
    4.  Make changes to an editable region of the Template (which will not propagate)
    5.  Assume that Template changes will be effected by just uploading the changed Template file to the server without also uploading the changed local files
    6.  Corrupt the site cache so that the link between Template and child page is broken
    7.  Improperly create your child pages by simply opening the Template, adding page specific content, and resaving the Template with an *.html extension rather that its *.dwt extension. (you can tell if this is the case by looking at the code on a child page - if you see anything like <!-- TemplateBeginEditable... then this is what you have done).  If you *have done this*, then recreate the child pages (in DWCS3) using FILE | New > Page from Template, select the Template and click CREATE.
    The 6th problem can be repaired by using SITE | Advanced > Recreate Site Cache, and the six others can be fixed by just not doing them.  Have you done any of those?
    Or, read this -
    http://www.adobe.com/go/dd83ba8b

  • CS4 DW Mac Templates FAIL to update child pages

    I duplicated a site, cleaned the cache. I moved the
    duplicated site to a new
    server. Uploaded all the files. I had one nested template
    which failed to
    update its child pages, so I detached it from the enclosing
    template.
    The child pages still have the link to the template
    <!-- InstanceBegin template="/Templates/whiteHome.dwt"
    codeOutsideHTMLIsLocked="false" -->
    But when I update the template, the child pages are not seen
    as connected
    and do not update. I'm at a loss here....
    Never seen this behavior in CS3.
    Jeff
    ~~~~~~~~~~~~
    Jefferis Peterson, Pres.
    Web Design and Marketing
    http://www.PetersonSales.com

    Lets see the code on the offending template, 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
    ==================
    "Jefferis NoSpamme" <[email protected]> wrote in
    message
    news:C5CB1116.8A921%[email protected]..
    >I duplicated a site, cleaned the cache. I moved the
    duplicated site to a
    >new
    > server. Uploaded all the files. I had one nested
    template which failed to
    > update its child pages, so I detached it from the
    enclosing template.
    >
    > The child pages still have the link to the template
    > <!-- InstanceBegin
    template="/Templates/whiteHome.dwt"
    > codeOutsideHTMLIsLocked="false" -->
    >
    > But when I update the template, the child pages are not
    seen as connected
    > and do not update. I'm at a loss here....
    > Never seen this behavior in CS3.
    >
    >
    > Jeff
    > ~~~~~~~~~~~~
    > Jefferis Peterson, Pres.
    > Web Design and Marketing
    >
    http://www.PetersonSales.com
    >
    >

  • Template won't update child pages

    I have a website and my client wanted to add a sentence on all pages.  I updated the template, when it asked to "update all" It 'updated successfully'.  I haven't had a problem up to this point.  It is in a template object so I can't update each page individually.
    I had done a couple of things, added a sentence and changed the rollover color on the links. When I open the individual pages the rollover color updated but the sentence is not there. 
    When I click on the template in the Assets panel, it shows it correctly.
    I am using CS5. I have also tried the site>advanced>recreate site cache.  I have shut down everything and tried again, still doesn't work.

    The website is http://rcottonlawpc.com, in the template (which sows correctly in the assets panel) after the "areas of practice" it is supposed to say "click on your area of need".  I had typed that in just before I changed the hover over links to change color, so they would be aged at the same time. The hover links work, but the test doesn't show up on the individual pages in the code, just in the template.

  • Template not updating child pages {subject edited by moderator}

    I used templates for the sprymenu bar throughout the site. Recently, when i updated my nurse template (change the "2012 Upgrade" to "Upgrade" on the horizontal bar (see the red highlighted line in the code) and saved my change, I could not see the prompt asking me to confirm the updating of those linked child pages. I guessed i must have messed up the linking between the template (Nurses_Contentpage.dwt) and child pages (Nurses-inpatient.html and more html files). Where should I look at to fix this? Thanks!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Template: Nurses_Contentpage.dwt
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="file://///cmc-childtest/departments/LearnEpic/style.css" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Clinical Support</title>
    <!-- TemplateEndEditable -->
    <script src="file://///cmc-childtest/departments/LearnEpic/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-25722711-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <link href="file://///cmc-childtest/departments/LearnEpic/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrap"><!-- TemplateBeginEditable name="EditRegion3" -->
      <div id="header">
        <h1>Clinical Support</h1>
        <h2> </h2>
      </div>
    <!-- TemplateEndEditable -->
      <div id="menu">
        <ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a href="index.html" target="blank">Home</a>      </li>
        <li><a href="#" class="MenuBarItemSubmenu">Providers</a>
          <ul>
            <li><a href="Providers_Inpatient.html">Inpatient/ICU</a></li>
            <li><a href="Providers_Ambulatory.html">Ambulatory</a></li>
            <li><a href="Providers_ED.html">Emergency Dept</a></li>
            <li><a href="Providers_PeriopServices.html">Periop Services</a></li>
            <li><a href="Providers_MyChildrens.html">MyChildren's</a></li>
                            <li><a href="Providers_MedSstudents.html">Medical Students</a></li>
          </ul>
        </li>
        <li><a class="MenuBarItemSubmenu" href="#">Nurses</a>
    <ul>
    <li><a href="Nurses_Inpatient.html">Inpatient/ICU</a></li>
            <li><a href="Nurses_Ambulatory.html">Ambulatory</a></li>
            <li><a href="Nurses_ED.html">Emergency Dept</a></li>
            <li><a href="Nurses_PeriopServ.html">Periop Services</a></li>
            <li><a href="Nurses_MyChildrens.html">MyChildren's</a></li>
          </ul>
          </li>
            <li><a href="pharmacists.html">Pharmacists</a></li>
            <li><a href="Therapists.html">Therapists</a></li>
            <li><a href="Ancillaries.html">Ancillaries</a>        </li>
            <li><a href="#" class="MenuBarItemSubmenu">Clinical Support</a>
    <ul>
    <li><a href="ClinicalSupport_ASR_PAR_SPAR.html">ASR/PAR/SPAR</a></li>
    <li><a href="ClinicalSupport_Admitting_ED_FC.html">Admitting/ED/FC</a></li>         
    <li><a href="ClinicalSupport_MA_PCA_PCT.html">MA/PCA/PCT</a></li>
    <li><a href="ClinicalSupport_Radio_Lab_Techs.html">Radiology/Lab Tech</a></li>
    <li><a href="ClinicalSupport_HUcs.html">HUC</a></li>
    <li><a href="ClinicalSupport_HIM.html">HIM</a></li>
    <li><a href="ClinicalSupport_FinancialServ.html">Pt Financial Services</a></li>
    </ul>
            </li>
                   <li><a href="MultiAreaModules.html">Multi-Area Modules</a></li>
            <li><a href="trainers.html">Trainers</a></li>
           <li><a href="Upgrade.html">Upgrade</a></li>
      </ul>
        </li>
      </div>
    <div id="contentwrap"><!-- TemplateBeginEditable name="EditRegion4" -->
      <div id="content02">
        <h2>Clinical Support &gt; Area name</h2>
       <table id="hor-minimalist-b" summary="Epic Access Requirements">
          <thead>
            <tr>
              <th width="169" >Category</th>
              <th width="554">Topic
              </th>
            </tr>
    <!-- MORE CODE HERE OMITTED....-->
    </div>
    <div style="clear: both;"> </div>
    </div>
    <div id="footer">
    <p>&copy; Copyright 2014 <a href="http://cmc-childnet/ChildNet/Departments/LearningInstitute/index.asp" target="_blank">the Learning Institute, </a><a href="http://cmc-childnet/ChildNet/Departments/home/index.asp" target="_blank">Children's Medical Center Dallas, Texas </a></p>
    </div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    One of the Child Nurse Pages: Nursee_inpatient.html
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><!-- InstanceBegin template="/Templates/Nurses_contentpage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="style.css" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>NurseTraining - Inpatient/ICU</title>
    <!-- InstanceEndEditable -->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-25722711-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrap"><!-- InstanceBeginEditable name="EditRegion3" -->
      <div id="header">
        <h1><a href="#">Nurse Trainings</a></h1>
        <h2> </h2>
      </div>
    <!-- InstanceEndEditable -->
      <div id="menu">
        <ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a href="index.html" target="blank">Home</a>      </li>
        <li><a href="#" class="MenuBarItemSubmenu">Providers</a>
          <ul>
            <li><a href="Providers_Inpatient.html">Inpatient/ICU</a></li>
            <li><a href="Providers_Ambulatory.html">Ambulatory</a></li>
            <li><a href="Providers_ED.html">Emergency Dept</a></li>
            <li><a href="Providers_PeriopServices.html">Periop Services</a></li>
            <li><a href="Providers_MyChildrens.html">MyChildren's</a></li>
                            <li><a href="Providers_MedSstudents.html">Medical Students</a></li>
          </ul>
        </li>
        <li><a class="MenuBarItemSubmenu" href="#">Nurses</a>
    <ul>
    <li><a href="Nurses_Inpatient.html">Inpatient/ICU</a></li>
            <li><a href="Nurses_Ambulatory.html">Ambulatory</a></li>
            <li><a href="Nurses_ED.html">Emergency Dept</a></li>
            <li><a href="Nurses_PeriopServ.html">Periop Services</a></li>
            <li><a href="Nurses_MyChildrens.html">MyChildren's</a></li>
          </ul>
          </li>
            <li><a href="pharmacists.html">Pharmacists</a></li>
            <li><a href="Therapists.html">Therapists</a></li>
            <li><a href="Ancillaries.html">Ancillaries</a>        </li>
            <li><a href="#" class="MenuBarItemSubmenu">Clinical Support</a>
    <ul>
    <li><a href="ClinicalSupport_ASR_PAR_SPAR.html">ASR/PAR/SPAR</a></li>
    <li><a href="ClinicalSupport_Admitting_ED_FC.html">Admitting/ED/FC</a></li>
    <li><a href="ClinicalSupport_MA_PCA_PCT.html">MA/PCA/PCT</a></li>
    <li><a href="ClinicalSupport_Radio_Lab_Techs.html">Radiology/Lab Tech</a></li>
    <li><a href="ClinicalSupport_HUcs.html">HUC</a></li>
    <li><a href="ClinicalSupport_HIM.html">HIM</a></li>
    <li><a href="ClinicalSupport_FinancialServ.html">Pt Financial Services</a></li>
    </ul> 
            </li>
                   <li><a href="MultiAreaModules.html">Multi-Area Modules</a></li>
            <li><a href="trainers.html">Trainers</a></li>
            <li><a href="2012Upgrade.html">2012 Upgrade</a></li>
      </ul>
        </li>
      </div>
    <div id="contentwrap"><!-- InstanceBeginEditable name="EditRegion4" -->
      <div id="content02">
        <h2>Nurses &gt; Inpatient/ICU</h2><br />
        <table id="hor-minimalist-b" summary="Epic Access Requirements">
          <thead>
            <tr>
              <th width="168" >Category</th>
              <th width="555">Topic
                </th>
            </tr>
            <tr >
    <!-- more code/content omitted -->
        <div style="clear: both;"> </div>
      </div>
    <!-- InstanceEndEditable -->
      <div id="sidebar02">
    <h3>   Nurses by Area</h3>
    <ul>
    <li><a href="Nurses_Inpatient.html">Inpatient/ICU</a></li>
    <li><a href="Nurses_Ambulatory.html">Ambulatory</a></li>
    <li><a href="Nurses_ED.html">Emergency Dept</a></li>
    <li><a href="Nurses_PeriopServ.html">Periop Services</a></li>
    <li><a href="http://cmc-childnet/ChildNet/Departments/LearnEpic/Nurses_MyChildrens.html">MyChildren's</a></li>
    </ul>
    </div>
    <div style="clear: both;"> </div>
    </div>
    <div id="footer">
    <p>&copy; Copyright 2014 <a href="http://cmc-childnet/ChildNet/Departments/LearningInstitute/index.asp" target="_blank">the Learning Institute, </a><a href="http://cmc-childnet/ChildNet/Departments/home/index.asp" target="_blank">Children's Medical Center Dallas, Texas </a></p>
    </div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    <!-- InstanceEnd --></html>

    I do have the exact hierarchy of this site on both the test and production sites.
    If that were the case then DW would not change the links to file:/// links. Are you sure they didn't start that way? Typically they get that way when you insert an element into the page that is *outside* the root folder for the site.
    For the nurse template, there are 6 child pages. I am using a total of 5-6 templates and each template has 3-6 child pages.
    I don't see any reason why you would need so many templates for this simple layout. I haven't encountered a site I couldn't do with a single template yet. However, that's not answering your question.
    Is this lack of propagation of changes true for ALL your templates in this site or only one? Also, do you see it happen on other sites?

  • DW CS3  child page content doubled after template change

    Hello
    I am using DW CS3.  My question / problem is that the child page of a template has double content (two times the same) after changing something on the template.
    On the child page I am entering text into a editable region in side an AP div.  When I don't like the position of the text in the child I close the child and go to the Parnet (template) and change the L  and the T.  Moving it to a more suitable location.   When I update the site and re-open the child the content is doubled and not even one right on top of another but staggered.
    When I view the child page there are three editable region tages that show up in the design window.  doctile, head and Editregion3.
    I receive an error saying "there is an error at  line 46, column 139 (absolute position 1583) of D:\.....\index.html"; InstanceBegin tag inside editable region.
    Not too sure what that means or how I need to fix it.
    If you have any suggestions on how I might be able to resolve this problem I would be more than appreciative.
    Thanks

    Not really a solution, but I changed the z value from auto to 1000, and now I can move the APdiv around with out causing any problems.
    The only odd thing is before I was not colliding with any other elements of the page. So I am not too sure why it did not want to work on the same plane as the other elements.
    EDIT:
    Changing the z value did not solve the problem. It was a fluke that it worked for a few moves.
    Any help would be great.
    Thanks
    p.s.
    not able to attach .dwt or .html???
    Message was edited by: Pengiun PC

  • Template not updating child pages

    Hi,  here's a link to the conundrum:
    http://theexperience-exchange.co.uk/stop.html
    This page (as are a few others) is based on a template document (stored in a Templates folder in the site root).
    I added an editable region in the form of a new div with some text etc.  When I do a 'save' I get the update files dialogue box, but it doesn't update the child pages.
    I did look on the forum for an answer, althought there are similar examples of this issue, they don't seem to have had any dircet help.
    As ever, any ideas would be greatly appreciated. 
    I'm signing off for the night, catch up with you all in the morning.
    Thanks in anticipation
    RP

    Let's start with the obvious things.
    1. Are you sure you're editing the correct template.dwt file? 
    Your Stop.html page is referencing this one.   internal_pages.dwt
    2. After saving your template and updating the child pages, did you upload the child pages to your server?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • My templates can not find their page in Dreamweaver

    How do I reroute a template so that it can find the pages that were derived from it..
    I have a site that has gotten screwed up somehow and I have to redefine the paths from the templates from to their child pages... the message that
    I get when I make a change to a template and it can't find its child page is the following:
    Error accessing file
    "macintosh_hd:Users:elizabethwallace:Desktop:mtti:mtti:Templates:news.dwt":finel not found (error code -43)
    would someone be kind enough to help... thank you so much.
    Elizabeth

    Before you do any of this, make a backup copy of your site files (not the definition, the folder and files themselves) and preserve them in case anything goes wrong in the process.
    First, make sure your site is properly defined and all contained within a site folder.
    Then make sure the Templates are all in the Templates folder.
    Make sure each page is where you want it to be in your site file structure.
    Go into each Template and correct any paths that need tweaking. If your site has been seriously discombobulated (technical term!), you will want to check and fix every link by the Browse for File method or the Point to Link. DO NOT try to type the paths into the Template yourself manually.
    Open each page in succession, and re-apply the Template that it should be linked to. You do that in Modify > Templates > Apply Template to Page.
    You may have to "assign" copy to editable regions at this step.
    When you finish with each Template, test it by making a minor change to the Template and propagating the change to the child pages. Check the child pages to make sure they are updating when the Template is changed.
    If everything looks good, it is good. Shake your own hand and pat yourself on the back for retrieving a difficult situation.
    If this does not work, post back and we will think about it some more. But it sounds like a reasonable course of action to me.
    Beth

  • Single Template support multiple formats of data - Best practice

    I have a requirement to create Invoices in a single PDF file.
    The invoices would belong to different categories - DebitNotes, CreditNotes, Invoices with single product,
    invoices with multiple product etc.. each will have a different format.
    I initially thought the right way to create a single pdf is to use a
    single Template, with different formats of invoice seperated by conditional formatting.
    The see from reading the blogs that the other way is to create sub-template
    (one each for credit, invoice, Debits etc) and plug it into the
    main template.
    I would like to know what is the best practice that is followed in the above case.
    If I were to use sub-templates how would I make it possible to view the invoice stub only on the first page.
    Since the data from the sub-template would go to multiple pages.
    Is adding the stub data to the footer the only option. Please can someone share with me an example
    template.
    Thanks
    Shandrila

    Shandrila
    If the various document types are of a single XML format ie the same structure with just document type differences and the layout format is the same just the data different or very minimal changes that can be handled with conditional formatting then I think it would be OK to have a single report for all document types.
    If the data structures are very different and the layout requirements are different then I would create separate reports for each document type. If the data structure is teh same but the document type layouts are different then go for separate layout formats.
    Going down the sub template path can be a little difficult, you might end up with a very complex set of templates that are almost as much of a pain to manage as the original report you are trying to replace.
    Here's the best scenario IMHO ...
    1 data extract, parameterized to pull invoice, CM, etc data based on the user request
    Multiple layout templates, 1 for each document type. If you have common layout sections across the layouts e.g address blocks then break them out as sub template components that all of the layouts can access and share.
    Multiple report definitions, sharing the data extract with a single layout template associated with them
    cheers
    Tim

  • How to replace multiple occurences of space in a string to a single space?

    How to replace multiple occurences of space in a string to a single space?

    Hi,
    try this code.
    data : string1(50) type c,
              flag(1) type c,
              dummy(50) type c,
              i type i,
              len type i.
    string1 = 'HI  READ    THIS'.
    len = strlen( string1 ).
    do len times.
    if string1+i(1) = ' '.
    flag = 'X'.
    else.
    if flag = 'X'.
    concatenate dummy string1+i(1) into dummy separated by space.
    clear flag.
    else.
    concatenate dummy string1+i(1) into dummy.
    endif.
    endif.
    i = i + 1.
    enddo.
    write : / string1.
    write : / dummy.

  • Replace multiple space characters with a single space

    Hi,
    Oracle 11g R2.
    Looking for a way to replace multiple space characters in a row with a single space. For example, the text "abc abc" should look like "abc abc". I tried toying with replace, but it only works for the case of 2 spaces. Need a solution for the cases where there could be 2 or more spaces.
    select replace(column1, chr(32)||chr(32), chr(32)) from tablea

    Hi,
    If you had to do this without regular expressions, you could use:
    SELECT  REPLACE ( REPLACE ( REPLACE (str, ' ', '~ ')
                     , ' ~'
              , '~ '
              )     AS new_str
    FROM    table_x;assuming there is some sub-string (I used '~' above) that never occurs right next to a space.
    However, unless you're uisng Oracle 9 (or earlier, which you're not doing) you don't have to do this without regular expressions. As you can see, the way Solomon showed is much simpler.

  • Replacing multiple spaces with a single space

    Hi friends,
    I have a string. It can have zero/one/multiple spaces. I want to make the multiple spaces to single space.
    Here are the cases:
    1. ' a b c d efg h' should be changed to 'a b c d e f g h'
    2. ' a b c d e f g h ' should be changed to 'a b c d e f g h'
    3. 'a b c d e f g h' should not be changed
    4. 'abcdefgh' should not be changed
    Both REPLACE and TRANSLATE do not help. I don't want to go for LOOP logic. Please help me to get it in SQL query.
    Thanks in advance!

    Hi,
    964559 wrote:
    Hi friends,
    I have a string. It can have zero/one/multiple spaces. I want to make the multiple spaces to single space.
    Here are the cases:
    1. ' a b c d efg h' should be changed to 'a b c d e f g h'One solution is to post your string on this site, and then copy it back again. (See below for a more serious solution .)
    This site is doing exactly what you want the function to do: it replaces multiple consecutive spaces with a single space. As a result, it's hard to see what you mean.
    To preserve spacing on this site, type these 6 characters
    \(small letters only, inside curly brackets) before and after each section where you want spacing preserved.
    2. ' a b c d e f g h ' should be changed to 'a b c d e f g h'
    3. 'a b c d e f g h' should not be changed
    4. 'abcdefgh' should not be changed
    Both REPLACE and TRANSLATE do not help. I don't want to go for LOOP logic. Please help me to get it in SQL query.
    Thanks in advance!Regular expressions make this easy:SELECT TRIM ( REGEXP_REPLACE ( str
    , ' +'
    ) AS compressed_str
    FROM table_x;
    You can use nested REPLACE calls to get the same results, but it's messy.
    Edited by: Frank Kulash on Feb 5, 2013 10:18 AM
    Added TRIM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for