Ask a Question related to Dreamweaver AppDev, Design and Development.
-
tshad #1
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" --> <!--
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>
</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
-
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... -
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... -
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... -
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... -
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... -
Murray *TMM* #2
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" --> <!--
> 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>
> </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
-
tshad #3
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
-
Murray *TMM* #4
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.
<shrug> It's not how this function works. If the page has existing content,> This is the
> identical page that the template was created from with only a small change
> made
> to it.
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
-
tshad #5
Re: Templates - Apply Template to Page problem
>Apply template to a page with existing content doesn't do what you are
So what is the difference between applying it or starting from a new page? It>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.
is going to look exactly like the template - to start..
But that is the case here. I only have one content area and one bit of><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.
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
-
Murray *TMM* #6
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



Reply With Quote

