This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > instant header





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 instant header
AlexShields

2004-08-26, 7:15 pm

I have a ton of webpages that I have created and they are all saved on my
computer. I would like to change the header and perhaps footer of every page.
The change needed is the same on each page, basically I'll be replacing the
header on each page. This could take a very long time to do as there are so
many pages, so is there a way that DW can automatically make these chages to
each page for me?

Thanks in advance to all who help!
Alex



Joe Makowiec

2004-08-26, 7:15 pm

On Thu 26 Aug 2004 12:48:47p, AlexShields wrote in
macromedia.dreamweaver:

> I have a ton of webpages that I have created and they are all saved on
> my computer. I would like to change the header and perhaps footer of
> every page. The change needed is the same on each page, basically I'll
> be replacing the header on each page. This could take a very long time
> to do as there are so many pages, so is there a way that DW can
> automatically make these chages to each page for me?


The answer depends on how many pages you have, how consistent you were in
the initial design of the pages, and what serverside technologies you
have available.

The two best choices are DW templates (for smaller sites) and server side
includes (for larger sites). What constitutes smaller and larger? I
guess it depends on you; I recently changed over a site which has about
70 pages.

As to how to apply them to existing pages...

BACK UP YOUR SITE!!!!! Don't blame me if this process messes up and you
don't have a backup, and the process can be tricky.

If you have exactly the same code on all pages, then do a search and
replace in DreamWeaver. Search for [existing header code]; replace with
[ssi code] OR [template code], although doing a template by search and
replace can be even trickier. But DW's S&R is extremely powerful - among
other things, it uses regular expressions - and if you do it right, can
do the whole job for you.

Even if you have to do this manually - go to every page and either insert
the SSI code or apply the template - it's a one-shot deal, and it
improves maintainability by orders of magnitude.

Give us a few more details; maybe show us the code (a URI usually works)
and some of the folks here might have some suggestions.
AlexShields

2004-08-26, 7:16 pm


The answer depends on how many pages you have,

hundreds

how consistent you were in
the initial design of the pages,

they all have the exact same header at present.

and what serverside technologies you
have available.

I'm not sure, I'd have to ask our host company I suppose.






BACK UP YOUR SITE!!!!! Don't blame me if this process messes up and you
don't have a backup, and the process can be tricky.

I will, not to worry.

If you have exactly the same code on all pages, then do a search and
replace in DreamWeaver. Search for [existing header code]; replace with
[ssi code] OR [template code], although doing a template by search and
replace can be even trickier. But DW's S&R is extremely powerful - among
other things, it uses regular expressions - and if you do it right, can
do the whole job for you.

This sounds good!

Even if you have to do this manually - go to every page and either insert
the SSI code or apply the template - it's a one-shot deal, and it
improves maintainability by orders of magnitude.

Can you search and replace a whole folder full of webpages?

Give us a few more details; maybe show us the code (a URI usually works)
and some of the folks here might have some suggestions.

Just cut and paist it in here?

Thanks for your reply kind Sir!

Alex

Joe Makowiec

2004-08-26, 7:16 pm

On Thu 26 Aug 2004 03:41:35p, AlexShields wrote in
macromedia.dreamweaver:

>
> Can you search and replace a whole folder full of webpages?


The options on Search & Replace are This File, Selected Files In Site,
Entire Local Site. So you can do whole folderS full of webpages!

>
> Just cut and paist it in here?


Sure.
AlexShields

2004-08-26, 11:15 pm

Good Sir,

The "Find and Replace" technique will work fine! I do have a new problem
though, I wanted to replace an image so I'm working on my text prior to "Find
and Replace" but when I load the following img url in place of the old one, it
doesn't come up in the WYSIWYG area. I've included the link below that so you
can see that it is actually there. Indeed I am ever grateful, Alex

<IMG SRC="http://www.customfurnitureco.com/txdj.jpg" WIDTH="400"
HEIGHT="123" BORDER=0>

HYPERLINK
"http://www.customfurnitureco.com/txdj.jpg"http://www.customfurnitureco.com/
txdj.jpg


Joe Makowiec

2004-08-26, 11:15 pm

On 26 Aug 2004 in macromedia.dreamweaver, AlexShields wrote:

> The "Find and Replace" technique will work fine!


Glad to hear it!

> I do have a new problem though, I wanted to replace an image so I'm
> working on my text prior to "Find and Replace" but when I load the
> following img url in place of the old one, it doesn't come up in the
> WYSIWYG area. I've included the link below that so you can see that
> it is actually there. Indeed I am ever grateful, Alex
>
> <IMG SRC="http://www.customfurnitureco.com/txdj.jpg" WIDTH="400"
> HEIGHT="123" BORDER=0>
>
> HYPERLINK
> "http://www.customfurnitureco.com/txdj.jpg"http://www.customfurnitu
> reco.com/ txdj.jpg


That's because DW won't go out to the 'Net to pick up an image to
display. Since you included the dimensions, it will display a
placeholder of the correct size.

For What It's Worth, DW is not a WYSIWYG editor; due to the large
number of user agents, and the even larger number of ways that they can
be configured, and the wide variety of hardware that they can run on,
there's no way you could ever have a WYSIWYG web editor.

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php
Murray *TMM*

2004-08-26, 11:15 pm

DW will not show images that are external to the local site.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
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
==================

"AlexShields" <webforumsuser@macromedia.com> wrote in message
news:cglqso$t07$1@forums.macromedia.com...
> Good Sir,
>
> The "Find and Replace" technique will work fine! I do have a new problem
> though, I wanted to replace an image so I'm working on my text prior to
> "Find
> and Replace" but when I load the following img url in place of the old
> one, it
> doesn't come up in the WYSIWYG area. I've included the link below that so
> you
> can see that it is actually there. Indeed I am ever grateful, Alex
>
> <IMG SRC="http://www.customfurnitureco.com/txdj.jpg" WIDTH="400"
> HEIGHT="123" BORDER=0>
>
> HYPERLINK
>
> "http://www.customfurnitureco.com/txdj.jpg"http://www.customfurnitureco.com/
> txdj.jpg
>
>



AlexShields

2004-08-26, 11:15 pm

Great, I suppose I'll simply leave it since it will show up once the pages are
uploaded, or I suppose I could put the img in one of the folders that will be
uploaded as well, in advice here? Thanks again and I understand what you said
about the WYSISYG editor, I was merely refering to the window pane that
reflects your html changes above and not the the program itself.

Best regards,
Alex

Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews