Welcome to WebmasterWorld Guest from 54.226.147.190

Forum Moderators: open

Message Too Old, No Replies

mass page updates

     

MusicClub

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

10+ Year Member



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.

Chicken Juggler

10:51 pm on Mar 18, 2004 (gmt 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.

SlowMove

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

WebmasterWorld Senior Member 10+ Year Member



If it's the exact same table, you could use a DW template, and change everything at once. Or there's [perl.org...]

SlowMove

11:17 pm on Mar 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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"

puresilk

3:55 am on Mar 24, 2004 (gmt 0)

10+ Year Member



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

Purple Martin

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

WebmasterWorld Senior Member 10+ Year Member



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.

RonPK

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

WebmasterWorld Senior Member 10+ Year Member



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month