|
|
Robbouk
regular
Reg'd: Sat
Posts: 19
Loc: Nottingham, UK
|
|
Hi everyone.
I have a website which contains a lot of pages, and I want to change the copyright on all of them, but I don't really want to load up each page one by one and manually change them.
Is there a program which will do it automatically?
Something along the lines of you type in what text you want changing and it searches all of the pages you have selected and changes that particular text, or you type in the HTML code that you want changing and it changes it.
Any suggestions?
Many thanks. Kind Regards. Anthony Robinson.
Anthony Robinson anthonyruk@msn.com
|
|
clum111
regular
Reg'd: Wed
Posts: 437
|
|
Good question, as I want to change certain things on my web site on every page, but it isn't just text I want to change. I want to change images and other links that appears on each page. So I'll be interested in what replies you get.
|
TheFatControlleR
Forum Admin
Reg'd: Fri
Posts: 6650
Loc: Megatripolis
|
|
Do you use an HTML editing program, or are you a hand coder?
TFC Nothing is a problem for me...
|
Robbouk
regular
Reg'd: Sat
Posts: 19
Loc: Nottingham, UK
|
|
Hi. I made the pages in Macromedia DreamWeaver, but I have hand coded before, just not on this particular website.
Anthony Robinson anthonyruk@msn.com
|
t34WRJ
new user
Reg'd: Sat
Posts: 7
|
|
Anthony
There's a shareware program called EditPad Pro that will let you open up all of your web site pages. Then you can go to 'edit' and 'search and replace' to change the same text in all of your HTML documents.
You can download it from www.editpadpro.com
Cheers
James
Web Design and Search Engine Optimisation (SEO) - www.jameswellburn.co.uk
|
TheFatControlleR
Forum Admin
Reg'd: Fri
Posts: 6650
Loc: Megatripolis
|
|
Stick with Dreamweaver.
Open any page with the text you want to change in code view.
Select the coding to be altered, right-click and select replace (the selected code should appear in then first text-box).
Enter the new coding in the second text-box.
Using the drop-down menu choose all documents in site (working from memory - may be slightly different).
Then either click, Replace or Replace all (make sure you have it right - -or make a copy of the site, just in case).
As an alternative for the future, create your copyright text and save as a Library item (thus when you change the library item all references to it on the site are updated automatically). 
There is a Dreamweaver extension available that will automatically change your copyright date to the current year - therefore future-proofing the copyright info.
TFC Nothing is a problem for me...
|
gollum
regular
Reg'd: Wed
Posts: 278
|
|
ServerSide Includes (SSI) are a slightly more technical solution if your webhost supports it. I think they are an extension of CGI. Basically, you include a line like this:
When the server parses the document, it will replace that line with the document footer.txt. When you want to change the copyright info, just update footer.txt (or what ever you call it) and it will be picked up. The only downside to this is that you have to name your pages with the extension of .shtml instead of .html I think any host that supports CGI should support SSI.
HTH
|
ianm
regular
Reg'd: Fri
Posts: 347
Loc: Colchester
|
|
As Gollum states Server side includes are the way to go. The way i do this is with php, php works with just about all major web host servers.
Take out your footer and put it on a page by itself, put just the html code you need there ie miss out the all the tags like <html> <title> <body>, put just the text or code you want on this page, then save it with the extension .php or .htm. To make things easier put it in a folder called includes,
ok now where your footer is on your page take it out and replace it with this
<?PHP include("includes/footer.php") ?>
the bit inside the brackets should point to the location of your include that now includes your footer, now all you have to do is upload the footer include and your updated pages and as soon as the server sees the page with a .php extension it will act on any php code on that page, in this case it will stick your include page in where that bit of php code is, next time you want to update it just make changes to the include.php file and your done.
I use includes moslty for links, and my header information. In dreamweaver as soon as it sees the php include it will view a bit strange depending on where on the page your include is, the easiest way around this is just go to the include script ie <?PHP include("includes/htmlheader.php") ?> and just delete the word php and then the page will view ok in dreamweaver while you make changes, but remember to put the php back once your done.
There are many ways to do this but thats how i do it.
Regards Ian
|