This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > March 2004 > Re: applying templates to existing pages
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: applying templates to existing pages
|
|
| Seth Meranda 2004-03-02, 4:28 pm |
| When applying the template, DW will ask you what current content goes where.
This can be a pain though.
In the past, I have cut and pasted the editable regions into a new page like
you mentioned.
Other times, I have gone through the code and added the necessary code to
make it work with a template. If you are lucky, you might be able to do all
pages at once with a find and replace (provided the code is exactly the same
on all pages).
Good luck, HTH.
--
Seth Meranda
smeranda<at>unlnotes<dot>unl<dot>edu
"dreamweaverwannabe" <webforumsuser@macromedia.com> wrote in message
news:c22mr2$b40$1@forums.macromedia.com...
> I am using Dreamweaver MX 2004. I have an exisitng website to which I
would
> like to apply Dreamweaver templates so that I can start using Contribute.
> According to the Help section, I should be able to create a template and
then
> apply it to existng web pages. However, when I do this, my content gets
> completely wiped out by the template, instead of maintaining the existing
> content that would fall in the editable regions of the template. I might
as
> well be making new pages, for all it is worth.
>
> Do I really have to create new pages and then cut and paste all the
content
> from my exisitng pages? Or is there a trick that I am missing that will
allow
> me to apply my template and not lose all my content? The code and
structure
> for the template and the existing pages are parallel. The only thing that
is
> not in the template is content in the editable regions. I tried putting
> content in the regions, but that content just replaced that which was
already
> on the existing pages.
>
| |
| dreamweaverwannabe 2004-03-02, 4:29 pm |
| [q][i]Originally posted by: [b][b]Newsgroup User[/b][/b][/i]
When applying the template, DW will ask you what current content goes where.
This can be a pain though.[/q]
This was the behavior I expected, but all it allowed me to do is specify where
the header and body go. As my editable areas are much finer than that, this
was useless.
[q]Other times, I have gone through the code and added the necessary code to
make it work with a template. If you are lucky, you might be able to do all
pages at once with a find and replace (provided the code is exactly the same
on all pages).[/q]
Well, this seems to be what I will have to do. Still tedious, but at least I
can do all the pages that use the same template at once. Thanks for the
suggestion.
dwwb
"dreamweaverwannabe" <webforumsuser@macromedia.com> wrote in message
news:c22mr2$b40$1@forums.macromedia.com...
> I am using Dreamweaver MX 2004. I have an exisitng website to which I
would
> like to apply Dreamweaver templates so that I can start using Contribute.
> According to the Help section, I should be able to create a template and
then
> apply it to existng web pages. However, when I do this, my content gets
> completely wiped out by the template, instead of maintaining the existing
> content that would fall in the editable regions of the template. I might
as
> well be making new pages, for all it is worth.
>
> Do I really have to create new pages and then cut and paste all the
content
> from my exisitng pages? Or is there a trick that I am missing that will
allow
> me to apply my template and not lose all my content? The code and
structure
> for the template and the existing pages are parallel. The only thing that
is
> not in the template is content in the editable regions. I tried putting
> content in the regions, but that content just replaced that which was
already
> on the existing pages.
>[/q]
| |
| Murray *TMM* 2004-03-02, 4:29 pm |
| > This was the behavior I expected, but all it allowed me to do is specify
where
> the header and body go. As my editable areas are much finer than that,
this
> was useless.
Which is why I always advise people to never apply templates to pages with
existing content.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"dreamweaverwannabe" <webforumsuser@macromedia.com> wrote in message
news:c22oas$dck$1@forums.macromedia.com...
> [q][i]Originally posted by: [b][b]Newsgroup User[/b][/b][/i]
> When applying the template, DW will ask you what current content goes
where.
> This can be a pain though.[/q]
>
> This was the behavior I expected, but all it allowed me to do is specify
where
> the header and body go. As my editable areas are much finer than that,
this
> was useless.
>
>
> [q]Other times, I have gone through the code and added the necessary code
to
> make it work with a template. If you are lucky, you might be able to do
all
> pages at once with a find and replace (provided the code is exactly the
same
> on all pages).[/q]
>
> Well, this seems to be what I will have to do. Still tedious, but at
least I
> can do all the pages that use the same template at once. Thanks for the
> suggestion.
>
> dwwb
>
>
>
> "dreamweaverwannabe" <webforumsuser@macromedia.com> wrote in message
> news:c22mr2$b40$1@forums.macromedia.com...
> would
Contribute.[color=darkred]
and[color=darkred]
> then
gets[color=darkred]
existing[color=darkred]
might[color=darkred]
> as
> content
will[color=darkred]
> allow
> structure
that[color=darkred]
> is
putting[color=darkred]
> already
>
>
>
| |
| dreamweaverwannabe 2004-03-02, 5:28 pm |
| I am using find and replace successfully after a couple of false starts. Here
are the steps for anyone else facing this darned situation:
1. I created the template from an existing page.
2. Then I applied the template to that page as everything, content and all,
matched.
3. Then I started the find and replace for all the other pages that need to
be using the template using the code from the page to which I just applied the
template.
[b]The trick is to make sure you end your replacement statements with an
"InstanceBeginEditable" or you lock yourself out![/b]
Otherwise, it is working beautifully. Cut and paste when it comes to over a
dozen pages just doesn't do it for me.
Thanks HTH.
dwwb
| |
| Murray *TMM* 2004-03-02, 5:28 pm |
| A dozen pages? You baby. 8)
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"dreamweaverwannabe" <webforumsuser@macromedia.com> wrote in message
news:c22qt7$h88$1@forums.macromedia.com...
> I am using find and replace successfully after a couple of false starts.
Here
> are the steps for anyone else facing this darned situation:
>
> 1. I created the template from an existing page.
> 2. Then I applied the template to that page as everything, content and
all,
> matched.
> 3. Then I started the find and replace for all the other pages that need
to
> be using the template using the code from the page to which I just applied
the
> template.
>
> [b]The trick is to make sure you end your replacement statements with an
> "InstanceBeginEditable" or you lock yourself out![/b]
>
> Otherwise, it is working beautifully. Cut and paste when it comes to
over a
> dozen pages just doesn't do it for me.
>
> Thanks HTH.
>
> dwwb
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|