Log in

View Full Version : edit all navigation at once?



Nailgunpro
03-21-2008, 11:30 PM
Is there a way without buying like dreamweaver that I can edit all my pages navigation at once? It takes forever doing it indevidually...
thanks

LadynRed
03-23-2008, 03:59 PM
You don't need Dreamweaver. What you need are server-side includes, which means you need PHP or .net.

Medyman
03-23-2008, 04:44 PM
Hi Nailgunpro,

The above poster is right, you'll need to utilized server-side includes. They didn't really do a good job in explaining it though, so I wanted to point you to tech_support's tutorial in doing this in PHP.

You can find it in the Tutorials forum (link (http://dynamicdrive.com/forums/showthread.php?t=28260)).

Jinglebelle
03-28-2008, 05:01 PM
That is a good tutorial, however there is an easier way.

First start by building your navagation in HTMl, CSS or whatever. Save the file as .inc ("yourfilename.inc").

Second save your webpages as .shtml files ("yourindex.shtml").

Then insert this code on the pages where you would like the navagation to appear: <!--#include virtual="yourfile.inc" -->

Then by simply editing the .inc file you can change all the navagation on every page at once. I use this method on all of my sites, and it really makes life easier. :D

djr33
03-28-2008, 07:02 PM
That assumes your host supports SSI, and also that you don't want more control as given by PHP/etc. It works, though, in some cases.

Nailgunpro
03-30-2008, 11:15 PM
wow thanks

molendijk
03-31-2008, 10:52 AM
Is there a way without buying like dreamweaver that I can edit all my pages navigation at once? It takes forever doing it indevidually...
thanks
If you don't mind using an iframe and innerHTML, you can do it with a simple (java-)script, see here (http://www.dynamicdrive.com/forums/showthread.php?t=28620).
-----
Arie Molendijk

Nile
03-31-2008, 11:37 AM
Or you can use ajax and have it update every mili. sec.
Plus, why would you use an iframe when you should use a frameset?

molendijk
03-31-2008, 12:00 PM
...Plus, why would you use an iframe when you should use a frameset?
Because the (hidden) iframe can be used for extracting external content (menu.html) with the help of innerHTML, see link in my previous post.
-----
Arie M.