Welcome to WebmasterWorld Guest from 54.235.46.164

Forum Moderators: open

Message Too Old, No Replies

mass page updates

     
10:47 pm on Mar 18, 2004 (gmt 0)

New User

10+ Year Member

joined:Feb 25, 2004
posts:36
votes: 0


Hello All,

I am managing a rapidly growing e-commerce website (we've got about 1,000 products right now). My question is: Is there a script that will allow me to add a table (named "lowtable") to the bottom of every page (without manually placing this table on all 1,000 or so pages)? My site is constructed using dreamweaver, and I'm using mostly HTML and a little javascript right now.

Any ideas? Thanks in advance.

10:51 pm on Mar 18, 2004 (gmt 0)

Full Member

joined:Jan 31, 2004
posts:230
votes: 0


Because they are all text files you could write a script that would open each file and place something right before </bodyL> and save it.
10:53 pm on Mar 18, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 8, 2003
posts:659
votes: 0


If it's the exact same table, you could use a DW template, and change everything at once. Or there's [perl.org...]
11:17 pm on Mar 18, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 8, 2003
posts:659
votes: 0


The nice thing about Perl is that you really don't have to write the script. There are a lot of scripts already written that can handle it. You might try searching for "replace.pl"
3:55 am on Mar 24, 2004 (gmt 0)

New User

10+ Year Member

joined:Mar 23, 2004
posts:4
votes: 0


Not sure if your server supports it but you could use SSI (Server Side Includes) and have a .shtml extension to your pages and keep the dynamic content in a text file and just use the <!--#INCLUDE VIRTUAL="mytxtfile.txt"--> , which would make it easy to edit and you just include the file where needed. Your pages would essentially be all HTML except were the includes are. It's also an easy way to have dynamic content without a database and using ASP or PHP or some other scripting language. If your not sure about it search for shtml+tutorial on google.

Mark

5:25 am on Mar 24, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 21, 2002
posts:977
votes: 0


Many text/html editors (including Homesite) have global replace functionality which allows you to edit text across many files in a folder (and subfolders) in one go.

So for example you could replace

</body>

with

<table>
...
</table>
</body>

to add a table to the bottom of every page.

6:22 pm on Mar 24, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 22, 2002
posts:1749
votes: 0


In addition to Purple Martin's post: if you want real speed, try UltraEdit. It's much faster than HomeSite - well, on my WinME box, that is.