Here is the same section with the code in it:
Employer Overview
 
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 [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => tshad [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) -->  > > > height="1"> > > > Here is the same section with the code in it: > > background="../final-site/option2/images/table-bg.gif"> > > > > > > > > > > > > > > >
height="1">
class="style1">Employer Overview
height="14">
  >
> background="../final-site/option2/images/right-shd.gif"> > height="1"> > > 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 > > >[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Murray *TMM* [ip] => forums@HAHAgrea [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> Templates - Apply Template to Page problem - Dreamweaver AppDev

Templates - Apply Template to Page problem - Dreamweaver AppDev

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 ...

  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:

    Doent Body and Doent 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. #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" <webforumsusermacromedia.com> wrote in message
    news:d4m5l8$kks$1forums.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:
    >
    > Doent Body and Doent 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

  3. #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

  4. #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" <webforumsusermacromedia.com> wrote in message
    news:d4miku$8am$1forums.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

  5. #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 doent 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 doent 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

  6. #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" <webforumsusermacromedia.com> wrote in message
    news:d4oc1d$sv5$1forums.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 doent 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 doent 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

Similar Threads

  1. master page items wont apply
    By joanne_meincke@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 1
    Last Post: October 9th, 12:40 PM
  2. Replies: 3
    Last Post: November 3rd, 08:51 PM
  3. Replies: 1
    Last Post: September 25th, 06:57 PM
  4. Apply template to all HTML files in folder
    By Murray *TMM* in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 15th, 06:08 PM
  5. Apply Template
    By PMol webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 11th, 01:59 PM

Bookmarks

Posting Permissions

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