Forum Moderators: open

Message Too Old, No Replies

Updating Web Site Quick and Easy? FrontPage Includes?

How do I...

         

phillypleez

11:48 pm on Feb 23, 2002 (gmt 0)

10+ Year Member



I figured out how to add the "include page" function from front page. I thought you can include the pages locally but i guess you have to be in the server to add pages.

Well anyway, this is what happened:

1. I created 4 sections and saved those 4 sections as different html files.
2. I used frontpage and used the "include function" to create the template.
3. I tested it and the template looks like the way i want to.

Ok, the problem is, I already have a done web site. I am in the process of redesigning the web site with the few changes in navigation. So, I tried to add the following code on the other web pages thinking that it will include the necessary template files
<!--webbot bot="Include" U-Include="PATH TO THE FILE" TAG="BODY" -->

It didn't do anything. So my understanding is you have to go through frontpage and be on the server to apply these functions on other pages. Or I guess I can work the other way around by adding the old pages to the new template. Am I correct? Are these the only two ways? It would be great if I can just add the code to get the effect.

Another thing is I tried testing changes to the navigation files. For example I changed the left navigation html file and uploaded it to the server thinking that the template will now be changed. It didn't do anything to the template file. How can I make changes to the navigation files and have the changes effect the whole site? Do I have to use the "include function" on every page again?

Any help or direction will be much appreciated.

Woz

5:12 am on Feb 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



phillypleez,

1. yes you have to use the page include menu funtions in FP for it to work. What it does is also include some additional information about where the data came from etc and then incorporates that into your page.

So to update an old site, first you need to import it into FP and then use the include page fuction on all the pages that need updating, and then upload the new version.

2. I did the same thing when I first started using the function and couldn't understand why there was no change at the server.

What happens is that FP actuall includes the included code into your destination page rather than a simple "server side include" type instruction. So you need to upload the ultimate page and not the include page.

So if you have changed you navigation include which is used on 150 pages, you need to upload ALL 150 pages for the new navigation to take effect. Whilst that can seem like a drag having to upload all those pages, the upside is that your navigation is pre-included which cuts down on server load when the pages are requested.

Onya
Woz

phillypleez

8:27 pm on Feb 24, 2002 (gmt 0)

10+ Year Member



I guess I had misconceptions of this whole "include function". I think it's pretty worthless if you have to change every page still. I think I will just learn the dreamweaver template method or try ssi...