Forum Moderators: open

Message Too Old, No Replies

Making changes on the fly

         

Kysmiley

10:51 pm on Apr 27, 2004 (gmt 0)

10+ Year Member



Im looking for a recommendation for software that would allow me to make changes or additions to multiple pages at one time with out doing all the hard coding one page at a time the site is growing and becoming time consuming
Pat

korkus2000

11:27 pm on Apr 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You mean like changing navigation in one place and having it update on all pages using it? It sounds like you want to use includes on your pages. ASP, PHP, SHTML and other server-side technologies have this ability. Do you have access to server side technology on your server?

mivox

11:30 pm on Apr 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also, for sections of the page that aren't called up from some kind of server-side include, finding a text editor with a good find-and-replace function is a huge help... Most WYSIWYG html editors have find-and-replace commands as well.

Kysmiley

12:20 am on Apr 28, 2004 (gmt 0)

10+ Year Member



Yes I have access to install server sides on the server I am presently working on gettin g a php shopping cart uploaded. As of yet i know very little about php but am soon getting into it. I do know a little more on cgi and CSS but CSS cant do what I need unless it is for format and structure more than content. Yep I can use my text editor but that would do a serch and replace not addition if I understand it correct
Pat

mivox

3:36 am on Apr 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To turn search and replace into addition, just do this:

Find:

original phrase just before you want to add something.

Replace:

original phrase just before you want to add something. With new text added behind it. It will replace the original phrase with the original phrase plus all the text you add after it in the replace box.

If you're not familiar with php, SSI include commands are a very quick and easy way to pull external text files into your code. Just use the <include file=""> tag, and put the header/navigation/footer html code in a text file that you call with the include tag.

You may also need to add a line to your .htaccess file to allow .html files to be server parsed:

AddHandler server-parsed .html .htm

(you can put any file suffix in addition to or in place of the ones listed)