Using Template in New File

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Using Template in New File

    :confused; I am trying to create a new file using a template already created.
    When the document comes up the template shows up on my design screen with the
    images. BUT, when I F12 to preview in my browser all the images are missing.
    Then when I go back into my design and I click Modify/Templates/Apply Template
    to Page, the template shows up in the browser! How do I make Dreamweaver to
    default to Apply the Template automatically when I select it from File New?
    I have other co-workers who are doing the exact same thing as I and working
    off the same server and theirs works just fine. Could my Dreamweaver have
    gotten corrupt? Thanks!

    trgomez Guest

  2. Similar Questions and Discussions

    1. The template file could not be opened
      Please i need reference
    2. Editing a Template file
      I've been learning how to use Contribute and am starting to use it with my clients as an easy way for them to update copy on their sites. But I was...
    3. Template file nested in itself
      :confused; I am getting a message - Template file nested in itself. Also not able to update any files which are based on this template file....
    4. install HTML::Template - Problem reading cache file / Bad file number
      i get the following error when i try to install HTML::Template to my local space, ie, not as root: +---------------------------- % perl -MCPAN...
    5. Editing .psd File In Web Template
      I have a web template (from Coffeecup.com) and need to change the standard entries ("your name here", etc) to something more meaningful. These...
  3. #2

    Default Re: Using Template in New File

    I cannot follow your steps - can you clarify them by writing a list that I
    can try to duplicate?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "trgomez" <webforumsuser@macromedia.com> wrote in message
    news:d6iaph$1t7$1@forums.macromedia.com...
    > :confused; I am trying to create a new file using a template already
    > created.
    > When the document comes up the template shows up on my design screen with
    > the
    > images. BUT, when I F12 to preview in my browser all the images are
    > missing.
    > Then when I go back into my design and I click Modify/Templates/Apply
    > Template
    > to Page, the template shows up in the browser! How do I make Dreamweaver
    > to
    > default to Apply the Template automatically when I select it from File
    > New?
    > I have other co-workers who are doing the exact same thing as I and
    > working
    > off the same server and theirs works just fine. Could my Dreamweaver have
    > gotten corrupt? Thanks!
    >

    Murray *TMM* Guest

  4. #3

    Default Re: Using Template in New File

    Ok, I am using templates (das.dwt is the name of my template). I open up my
    Dreamweaver MX 2004. I click File/New and from the Templates tab, I choose my
    defined site (named DAS) and choose the template I want to use (das.dwt).
    Then I click Create. In design mode I can see my template and because it is
    locked I cannot touch it I can only type in the "content" area (which is what I
    want). I save this file. When I look at it in my browser, the images that
    were in my template (that looked fine in design view) are all missing. They
    are there but they are not pointing to the right path, therefore show up as
    missing images. HOWEVER, if I go back into my Dreamweaver to that same file I
    saved (that looks fine in design mode), and if I click on
    Modify/Templates/Apply Template to Page, it brings up a list of templates for
    my site and I select the same template, das.dwt and now when I look at it in my
    browser it looks fine.

    My question is, why doesn't it apply the template correctly when I do it from
    File/New?

    I my co-workers are doing this same exact thing I am doing and it works fine
    for them. Thanks for your help!

    trgomez Guest

  5. #4

    Default Re: Using Template in New File

    Show me the code on your template page, please.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "trgomez" <webforumsuser@macromedia.com> wrote in message
    news:d6iet5$898$1@forums.macromedia.com...
    > Ok, I am using templates (das.dwt is the name of my template). I open up
    > my
    > Dreamweaver MX 2004. I click File/New and from the Templates tab, I
    > choose my
    > defined site (named DAS) and choose the template I want to use (das.dwt).
    > Then I click Create. In design mode I can see my template and because it
    > is
    > locked I cannot touch it I can only type in the "content" area (which is
    > what I
    > want). I save this file. When I look at it in my browser, the images
    > that
    > were in my template (that looked fine in design view) are all missing.
    > They
    > are there but they are not pointing to the right path, therefore show up
    > as
    > missing images. HOWEVER, if I go back into my Dreamweaver to that same
    > file I
    > saved (that looks fine in design mode), and if I click on
    > Modify/Templates/Apply Template to Page, it brings up a list of templates
    > for
    > my site and I select the same template, das.dwt and now when I look at it
    > in my
    > browser it looks fine.
    >
    > My question is, why doesn't it apply the template correctly when I do it
    > from
    > File/New?
    >
    > I my co-workers are doing this same exact thing I am doing and it works
    > fine
    > for them. Thanks for your help!
    >

    Murray *TMM* Guest

  6. #5

    Default Re: Using Template in New File

    Do you think it would have something to do with my template and not some kind
    of settings in Dreamweaver? As I mentioned before, it works perfect on my
    co-workers machines. I have attached the code, but it's not just this
    template. It's any template I try to use with File/New...

    Thanks!

    <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
    </head>
    <body link="#000066" vlink="#000066" alink="#000066" class="background"
    onLoad="MM_preloadImages('../oit/images/home_swap.jpg','../images/accounting_f2.
    gif','../images/budgets_f2.gif','../images/busserv_f2.gif','../images/contracts_
    f2.gif','../images/health_f2.gif','../images/labor_f2.gif','../images/personnel_
    f2.gif','../images/whatsnew_f2.gif','../images/goto_f2.gif','../images/feedback_
    f2.gif','../images/staff_f2.gif','../images/mainstream_f2.gif','../images/das_ho
    me_f2.gif','../images/contactweb_f2.gif','../images/fees_f2.gif')">
    <table width="737" height="273" border="0">
    <tr>
    <td colspan="2" valign="top"><strong><font color="#FFCC00" size="-2"
    face="Arial, Helvetica, sans-serif">
    <script language="JavaScript">
    <!--

    todaysdate();

    // -->
    </script>
    </font></strong></td>
    </tr>
    <tr>
    <td width="22%" valign="top">
    <table width="95%" border="0">
    <tr>
    <td><strong><font color="#FFCC00" size="-2" face="Arial, Helvetica,
    sans-serif">
    </font></strong></td>
    </tr>
    <tr>
    <td height="20">&nbsp;</td>
    </tr>
    <tr>
    <td><strong><font color="#00FF66" size="-2" face="Arial, Helvetica,
    sans-serif"><img src="../images/das_logo_gold.gif" width="105" height="43">
    </font></strong></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><img src="../images/branch_info.gif" width="124" height="35"></td>
    </tr>
    <tr>
    <td><a href="../html/accounting_home.htm"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image21','','../images/accounting_f2.gif',1)"><img
    src="../images/accounting.gif" alt="Accounting Link" name="Image21" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="../html/budgets_home.htm"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image3','','../images/budgets_f2.gif',1)"><img
    src="../images/budgets.gif" alt="Budgets Link" name="Image3" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="../html/business_management_and_suppor.htm"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image4','','../images/busserv_f2.gif',1)"><img
    src="../images/busserv.gif" alt="Business Management Link" name="Image4"
    width="124" height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="../html/bm_contracts.htm"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image5','','../images/contracts_f2.gif',1)"><img
    src="../images/contracts.gif" alt="Contracts Link" name="Image5" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="../html/fees_home.htm" onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image17','','../images/fees_f2.gif',1)"><img
    src="../images/fees.gif" alt="Fees" name="Image17" width="124" height="20"
    border="0"></a></td>
    </tr>
    <tr>
    <td><a href="../html/health_and_safety_home.htm"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image6','','../images/health_f2.gif',1)"><img
    src="../images/health.gif" alt="Health and Safety Link" name="Image6"
    width="124" height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="../html/labor_relations_home.htm"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image7','','../images/labor_f2.gif',1)"><img
    src="../images/labor.gif" alt="Labor Relations Link" name="Image7" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="../html/personnel_home.htm"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image8','','../images/personnel_f2.gif',1)"><img
    src="../images/personnel.gif" alt="Personnel Link" name="Image8" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><hr align="left" width="110"></td>
    </tr>
    <tr>
    <td><a href="../index.htm" onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image15','','../images/das_home_f2.gif',1)"><img
    src="../images/das_home.gif" alt="DAS Home Link" name="Image15" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="../html/what_s_new.htm" onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image19','','../images/whatsnew_f2.gif',1)"><img
    src="../images/whatsnew.gif" alt="What's New Link" name="Image19" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="../html/go_to.htm" onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image20','','../images/goto_f2.gif',1)"><img
    src="../images/goto.gif" alt="Go To Link" name="Image20" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="mailto:websupport@oit.swrcb.ca.gov"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image22','','../images/feedback_f2.gif',1)"><img
    src="../images/feedback.gif" alt="Feedback Link" name="Image22" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="http://epanet.ca.gov/staffdirectory/"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image23','','../images/staff_f2.gif',1)"><img
    src="../images/staff.gif" alt="Meet the Staff Link" name="Image23" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="http://central.swrcb.ca.gov/mainstrm/index.htm"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image24','','../images/mainstream_f2.gif',1)"><img
    src="../images/mainstream.gif" alt="Mainstream Link" name="Image24" width="124"
    height="20" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="mailto:websupport@oit.swrcb.ca.gov"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image16','','../images/contactweb_f2.gif',1)"><img
    src="../images/contactweb.gif" alt="Contact Web Support Link" name="Image16"
    width="124" height="31" border="0"></a></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    </table></td>
    <td width="78%" valign="top"><table width="561" height="518" border="0">
    <tr>
    <td height="39">&nbsp;</td>
    </tr>
    <tr>
    <td valign="top"><!-- TemplateBeginEditable name="Content" -->
    <span class="content">Content</span></font><!-- TemplateEndEditable
    --></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </body>
    </html>

    trgomez Guest

  7. #6

    Default Re: Using Template in New File

    That code looks normal for a template page.

    Please tell me - where is your local site located? Is it local to your
    computer?

    Also, tell me how you are set to preview in Browser (EDIT | Preferences >
    Preview in Browser) - are you using temp files to preview?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "trgomez" <webforumsuser@macromedia.com> wrote in message
    news:d6j04t$31v$1@forums.macromedia.com...
    > Do you think it would have something to do with my template and not some
    > kind
    > of settings in Dreamweaver? As I mentioned before, it works perfect on my
    > co-workers machines. I have attached the code, but it's not just this
    > template. It's any template I try to use with File/New...
    >
    > Thanks!
    >
    > <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
    > </head>
    > <body link="#000066" vlink="#000066" alink="#000066" class="background"
    > onLoad="MM_preloadImages('../oit/images/home_swap.jpg','../images/accounting_f2.
    > gif','../images/budgets_f2.gif','../images/busserv_f2.gif','../images/contracts_
    > f2.gif','../images/health_f2.gif','../images/labor_f2.gif','../images/personnel_
    > f2.gif','../images/whatsnew_f2.gif','../images/goto_f2.gif','../images/feedback_
    > f2.gif','../images/staff_f2.gif','../images/mainstream_f2.gif','../images/das_ho
    > me_f2.gif','../images/contactweb_f2.gif','../images/fees_f2.gif')">
    > <table width="737" height="273" border="0">
    > <tr>
    > <td colspan="2" valign="top"><strong><font color="#FFCC00" size="-2"
    > face="Arial, Helvetica, sans-serif">
    > <script language="JavaScript">
    > <!--
    >
    > todaysdate();
    >
    > // -->
    > </script>
    > </font></strong></td>
    > </tr>
    > <tr>
    > <td width="22%" valign="top">
    > <table width="95%" border="0">
    > <tr>
    > <td><strong><font color="#FFCC00" size="-2" face="Arial,
    > Helvetica,
    > sans-serif">
    > </font></strong></td>
    > </tr>
    > <tr>
    > <td height="20">&nbsp;</td>
    > </tr>
    > <tr>
    > <td><strong><font color="#00FF66" size="-2" face="Arial,
    > Helvetica,
    > sans-serif"><img src="../images/das_logo_gold.gif" width="105"
    > height="43">
    > </font></strong></td>
    > </tr>
    > <tr>
    > <td>&nbsp;</td>
    > </tr>
    > <tr>
    > <td><img src="../images/branch_info.gif" width="124"
    > height="35"></td>
    > </tr>
    > <tr>
    > <td><a href="../html/accounting_home.htm"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image21','','../images/accounting_f2.gif',1)"><img
    > src="../images/accounting.gif" alt="Accounting Link" name="Image21"
    > width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="../html/budgets_home.htm"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image3','','../images/budgets_f2.gif',1)"><img
    > src="../images/budgets.gif" alt="Budgets Link" name="Image3" width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="../html/business_management_and_suppor.htm"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image4','','../images/busserv_f2.gif',1)"><img
    > src="../images/busserv.gif" alt="Business Management Link" name="Image4"
    > width="124" height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="../html/bm_contracts.htm"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image5','','../images/contracts_f2.gif',1)"><img
    > src="../images/contracts.gif" alt="Contracts Link" name="Image5"
    > width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="../html/fees_home.htm"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image17','','../images/fees_f2.gif',1)"><img
    > src="../images/fees.gif" alt="Fees" name="Image17" width="124" height="20"
    > border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="../html/health_and_safety_home.htm"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image6','','../images/health_f2.gif',1)"><img
    > src="../images/health.gif" alt="Health and Safety Link" name="Image6"
    > width="124" height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="../html/labor_relations_home.htm"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image7','','../images/labor_f2.gif',1)"><img
    > src="../images/labor.gif" alt="Labor Relations Link" name="Image7"
    > width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="../html/personnel_home.htm"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image8','','../images/personnel_f2.gif',1)"><img
    > src="../images/personnel.gif" alt="Personnel Link" name="Image8"
    > width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><hr align="left" width="110"></td>
    > </tr>
    > <tr>
    > <td><a href="../index.htm" onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image15','','../images/das_home_f2.gif',1)"><img
    > src="../images/das_home.gif" alt="DAS Home Link" name="Image15"
    > width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="../html/what_s_new.htm"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image19','','../images/whatsnew_f2.gif',1)"><img
    > src="../images/whatsnew.gif" alt="What's New Link" name="Image19"
    > width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="../html/go_to.htm" onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image20','','../images/goto_f2.gif',1)"><img
    > src="../images/goto.gif" alt="Go To Link" name="Image20" width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="mailto:websupport@oit.swrcb.ca.gov"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image22','','../images/feedback_f2.gif',1)"><img
    > src="../images/feedback.gif" alt="Feedback Link" name="Image22"
    > width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="http://epanet.ca.gov/staffdirectory/"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image23','','../images/staff_f2.gif',1)"><img
    > src="../images/staff.gif" alt="Meet the Staff Link" name="Image23"
    > width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="http://central.swrcb.ca.gov/mainstrm/index.htm"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image24','','../images/mainstream_f2.gif',1)"><img
    > src="../images/mainstream.gif" alt="Mainstream Link" name="Image24"
    > width="124"
    > height="20" border="0"></a></td>
    > </tr>
    > <tr>
    > <td><a href="mailto:websupport@oit.swrcb.ca.gov"
    > onMouseOut="MM_swapImgRestore()"
    > onMouseOver="MM_swapImage('Image16','','../images/contactweb_f2.gif',1)"><img
    > src="../images/contactweb.gif" alt="Contact Web Support Link"
    > name="Image16"
    > width="124" height="31" border="0"></a></td>
    > </tr>
    > <tr>
    > <td>&nbsp;</td>
    > </tr>
    > <tr>
    > <td>&nbsp;</td>
    > </tr>
    > <tr>
    > <td>&nbsp;</td>
    > </tr>
    > <tr>
    > <td>&nbsp;</td>
    > </tr>
    > <tr>
    > <td>&nbsp;</td>
    > </tr>
    > <tr>
    > <td>&nbsp;</td>
    > </tr>
    > </table></td>
    > <td width="78%" valign="top"><table width="561" height="518"
    > border="0">
    > <tr>
    > <td height="39">&nbsp;</td>
    > </tr>
    > <tr>
    > <td valign="top"><!-- TemplateBeginEditable name="Content" -->
    > <span class="content">Content</span></font><!--
    > TemplateEndEditable
    > --></td>
    > </tr>
    > </table></td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >

    Murray *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139