Templates - Apply Template to Page problem

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

  1. #1

    Default Templates - Apply Template to Page problem

    I have a page that I made into a template.

    All I did for the editable region was to take out the html from the content
    area (almost Bottom - right) so that the area is blank.

    I then made it a template.

    I then took the exact same page the template was created from, except it has
    some html in the content area (I have about 20 others also).

    My problem is that I can't seem to get the page to keep only the content area
    that was changed. Everything else is obviously identical.

    Here is the editable region from the template page:

    <td width="587" height="308" align="left" valign="top"
    background="../final-site/option2/images/table-bg.gif">
    <!-- TemplateBeginEditable name="EditableRegion1" -->&nbsp; <!--
    TemplateEndEditable -->
    </td>
    <td width="4" background="../final-site/option2/images/right-shd.gif">
    <img src="../final-site/option2/images/clr.gif" width="1"
    height="1"></td>


    Here is the same section with the code in it:

    <td width="587" height="308" align="left" valign="top"
    background="../final-site/option2/images/table-bg.gif">
    <table width="571" border="0" height="72">
    <tr>
    <td width="133" height="12"></td>
    <td width="428" height="12"></td>
    </tr>
    <tr>
    <td colspan="2" align="left" valign="top" height="12"></td>
    </tr>
    <tr>
    <td colspan="2" align="left" valign="top" height="1"><blockquote
    class="style1">Employer Overview</blockquote></td>
    </tr>
    <tr>
    <td colspan="2" align="left" valign="top"
    height="14"><blockquote>&nbsp;
    </blockquote></td>
    </tr>
    </table></td>
    <td width="4" background="../final-site/option2/images/right-shd.gif">
    <img src="../final-site/option2/images/clr.gif" width="1"
    height="1"></td>

    When I try to apply it, I get 2 inconsistant regions:

    Document Body and Document Head.

    If I say "Nowhere", it wipes out what was in the Content area. If I say
    EditableRegion1, it sticks the whole body area - again - into the
    EditableRegion1 area (so I have 2 bodies).

    It puts the editable region in the correct place, but doesn't give me the
    option to keep just the area inside the region.

    How do I deal with this?

    If I can't do this, what does "Apply Template to Page" do for you?

    Thanks,

    Tom



    tshad Guest

  2. Similar Questions and Discussions

    1. master page items wont apply
      After making additions and changes to the master page in my calendar project, the new, added, and changed items won't appear on the pages. Not using...
    2. Qesign.com: custom HTML template - $299, ready templates - $32
      MAGIA Internet Studio Custom HTML template development (PSD for FREE) - $299 http://www.qesign.com Ready HTML templates with PSD sources - $32...
    3. ASP Templates like Perl's HTML::Template?
      Environment: Classic ASP running on IIS v5.1 Scripting Language: VBScript I suppose someone would have to be somewhat familiar with Perl in...
    4. Apply template to all HTML files in folder
      what: Not really. There is a batch process described on our book's companion site at http://www.dreamweavermx-templates.com but it's nearly...
    5. Apply Template
      Hi, I have a website template which I use to create all my new pages, Now I use a program to build a web photoalbum, so this creates new html...
  3. #2

    Default Re: Templates - Apply Template to Page problem

    You have just discovered what a bad idea it is to apply a template to a page
    with existing content.

    The only way to do this correctly is to spawn a new page from the template
    (FILE | New > Templates > site name > template name > Create, and then copy
    and paste your content into the new child page before saving the new page
    over the old one.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url]
    THE BEST WAY TO GET ANSWERS
    ==================
    [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
    ==================
    "tshad" <webforumsuser@macromedia.com> wrote in message
    news:d4m5l8$kks$1@forums.macromedia.com...
    >I have a page that I made into a template.
    >
    > All I did for the editable region was to take out the html from the
    > content
    > area (almost Bottom - right) so that the area is blank.
    >
    > I then made it a template.
    >
    > I then took the exact same page the template was created from, except it
    > has
    > some html in the content area (I have about 20 others also).
    >
    > My problem is that I can't seem to get the page to keep only the content
    > area
    > that was changed. Everything else is obviously identical.
    >
    > Here is the editable region from the template page:
    >
    > <td width="587" height="308" align="left" valign="top"
    > background="../final-site/option2/images/table-bg.gif">
    > <!-- TemplateBeginEditable name="EditableRegion1" -->&nbsp; <!--
    > TemplateEndEditable -->
    > </td>
    > <td width="4" background="../final-site/option2/images/right-shd.gif">
    > <img src="../final-site/option2/images/clr.gif" width="1"
    > height="1"></td>
    >
    >
    > Here is the same section with the code in it:
    >
    > <td width="587" height="308" align="left" valign="top"
    > background="../final-site/option2/images/table-bg.gif">
    > <table width="571" border="0" height="72">
    > <tr>
    > <td width="133" height="12"></td>
    > <td width="428" height="12"></td>
    > </tr>
    > <tr>
    > <td colspan="2" align="left" valign="top" height="12"></td>
    > </tr>
    > <tr>
    > <td colspan="2" align="left" valign="top"
    > height="1"><blockquote
    > class="style1">Employer Overview</blockquote></td>
    > </tr>
    > <tr>
    > <td colspan="2" align="left" valign="top"
    > height="14"><blockquote>&nbsp;
    > </blockquote></td>
    > </tr>
    > </table></td>
    > <td width="4"
    > background="../final-site/option2/images/right-shd.gif">
    > <img src="../final-site/option2/images/clr.gif" width="1"
    > height="1"></td>
    >
    > When I try to apply it, I get 2 inconsistant regions:
    >
    > Document Body and Document Head.
    >
    > If I say "Nowhere", it wipes out what was in the Content area. If I say
    > EditableRegion1, it sticks the whole body area - again - into the
    > EditableRegion1 area (so I have 2 bodies).
    >
    > It puts the editable region in the correct place, but doesn't give me the
    > option to keep just the area inside the region.
    >
    > How do I deal with this?
    >
    > If I can't do this, what does "Apply Template to Page" do for you?
    >
    > Thanks,
    >
    > Tom
    >
    >
    >

    Murray *TMM* Guest

  4. #3

    Default Re: Templates - Apply Template to Page problem

    So you are saying that this function doesn't work?

    I can't see what this function is even for if it can't do this. This is the
    identical page that the template was created from with only a small change made
    to it.

    Tom

    tshad Guest

  5. #4

    Default Re: Templates - Apply Template to Page problem

    Apply template to a page with existing content doesn't do what you are
    hoping it will. The only way to successfully apply a template to an
    existing page would be if the page was a new page. In that case there is no
    content to place.
    > This is the
    > identical page that the template was created from with only a small change
    > made
    > to it.
    <shrug> It's not how this function works. If the page has existing content,
    you can only place that content into a single editable region. There is no
    way for you to describe which content would be placed into which region.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url]
    THE BEST WAY TO GET ANSWERS
    ==================
    [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
    ==================
    "tshad" <webforumsuser@macromedia.com> wrote in message
    news:d4miku$8am$1@forums.macromedia.com...
    > So you are saying that this function doesn't work?
    >
    > I can't see what this function is even for if it can't do this. This is
    > the
    > identical page that the template was created from with only a small change
    > made
    > to it.
    >
    > Tom
    >

    Murray *TMM* Guest

  6. #5

    Default Re: Templates - Apply Template to Page problem

    >Apply template to a page with existing content doesn't do what you are
    >hoping it will. The only way to successfully apply a template to an
    >existing page would be if the page was a new page. In that case there is no
    >content to place.
    So what is the difference between applying it or starting from a new page? It
    is going to look exactly like the template - to start..
    ><shrug> It's not how this function works. If the page has existing content,
    >you can only place that content into a single editable region. There is no
    >way for you to describe which content would be placed into which region.
    But that is the case here. I only have one content area and one bit of
    content.

    As I said, I dont' see any use for this function - not to say there isn't one.
    It just makes no sense to me.

    It is similar to the mixing and matching document types (htm,asp,asp.net).

    It makes no sense to me as to why DW fiddles with the Page directive when
    using templates. Even though you can mix diffent document types (aspx,
    asp,htm) t on your site and server engine. You cannot do it and use the same
    template (which you should be able to do). You could if DW would leave the
    Page Directive alone like it does other directives. Many people use a
    separate htm pages for there home page (index.htm). But if you want to use the
    same template throughout your site you either have to rename your htm files to
    aspx files (if you have an asp.net site) or have multiple identical templates -
    one with an htm extension and one with an aspx extension.

    Thanks,

    Tom

    tshad Guest

  7. #6

    Default Re: Templates - Apply Template to Page problem

    You can express your frustration to the team.

    [url]http://www.macromedia.com/support/email/wishform/[/url]

    I don't find much use for the function either.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url]
    THE BEST WAY TO GET ANSWERS
    ==================
    [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
    ==================
    "tshad" <webforumsuser@macromedia.com> wrote in message
    news:d4oc1d$sv5$1@forums.macromedia.com...
    > >Apply template to a page with existing content doesn't do what you are
    > >hoping it will. The only way to successfully apply a template to an
    > >existing page would be if the page was a new page. In that case there is
    > >no
    > >content to place.
    >
    > So what is the difference between applying it or starting from a new page?
    > It
    > is going to look exactly like the template - to start..
    >
    > ><shrug> It's not how this function works. If the page has existing
    > >content,
    > >you can only place that content into a single editable region. There is
    > >no
    > >way for you to describe which content would be placed into which region.
    >
    > But that is the case here. I only have one content area and one bit of
    > content.
    >
    > As I said, I dont' see any use for this function - not to say there isn't
    > one.
    > It just makes no sense to me.
    >
    > It is similar to the mixing and matching document types (htm,asp,asp.net).
    >
    > It makes no sense to me as to why DW fiddles with the Page directive when
    > using templates. Even though you can mix diffent document types (aspx,
    > asp,htm) t on your site and server engine. You cannot do it and use the
    > same
    > template (which you should be able to do). You could if DW would leave
    > the
    > Page Directive alone like it does other directives. Many people use a
    > separate htm pages for there home page (index.htm). But if you want to
    > use the
    > same template throughout your site you either have to rename your htm
    > files to
    > aspx files (if you have an asp.net site) or have multiple identical
    > templates -
    > one with an htm extension and one with an aspx extension.
    >
    > Thanks,
    >
    > Tom
    >

    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