PDA

View Full Version : Copying a cell(menu) on the other pages


tmax
04-01-1999, 09:12 PM
Hello, anyone knows this trick?

My web site has a menu list(in the cell) on the left side of the front page(just like the future quest's homepage). And I use that same page structure on most of my pages. That means, I have the same menu list on the left site on every single page.

When I edit my web site, I have to go through every single page and fix the menu section.

Is there anyway for me to command so all my pages will simply "clone" the menu cell from the front page?

This will make my life so much easier.
Thank you and God bless.....

teach1st
04-01-1999, 09:21 PM
If I understand correctly, you can use search and replace software for that. You tell the program exactly what you want to replace, which files to look in and it's done. Nonags (www.nonags.com) has a couple of free ones.

The free one I use (and it may not be the best) is called multi-replace. Get it at:
www.net-shopper.co.uk/creative/education/languages/martin/mreplace.htm

[This message has been edited by teach1st (edited 04-01-99).]

Justin
04-01-1999, 09:45 PM
The left hand navigation is at the top of the HTML file - so you could put all of that info in one file and use a server side include to call it from each page. That's how my site has been for months http://www.aota.net/ubb/smile.gif FutureQuest's site is the same way, using php to do it.

Creat a file and call it something like header.txt, and put in your navigational stuff. Then in each page, put this line in:

<!--#include file="header.txt" -->

That assumes it's in the same directory as the page. If not, use:

<!--#include virtual="/header.txt" -->

Then name your pages *.shtml so they will be parsed for SSI's.

If you are using IE4, go here:

http://www.vdj.net/header.shtml

Netscape won't display a page with tables that aren't closed properly, and that is just my header, so it's an open table. That has my banner script, random meta keyword generator, CSS, JavaScript, and navigaion. My footer ( http://www.vdj.net/footer.shtml ) has the ending code for the tables, bottom navigation, and another banner. So to add a page, I just add a few lines of text, add a link to it on my header and footer, and it's done on the whole site http://www.aota.net/ubb/smile.gif

See http://www.aota.net/Tutorials/SSI/SSI.shtml for more info on SSI's. They are awesome for what you want to do (note: the include page doesn't have to be named shtml, but mine uses SSI's within the SSI for the banner script and the random keywords).

Hope this helps http://www.aota.net/ubb/smile.gif

------------------
Justin Nelson
FutureQuest Support