Forum Moderators: open

Message Too Old, No Replies

Best way to convert website from frames

I need to update our website to conform to new W3C standards

         

Pastor_Pete

1:00 pm on May 8, 2008 (gmt 0)

10+ Year Member



I would appreciate advice as to the best way to start updating a LARGE website from very unstandard html without CSS that operates using frames. What is the best navigational method? I currently use frames to hold a drop down flash menu that is quite extensive. I appreciate sound advice before I make the plunge.

thecoalman

2:52 pm on May 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Assuming you are using the frames for navigation, use an include instead. Make sure to keep the content frame as the one with url you'll be linking to from navigation as that will be indexed by the search engines.

The include would be similar to a frame as its one single file that is included into every document, the client only sees one document.

For example using php:

<?php include($_SERVER['DOCUMENT_ROOT'] . '/somefolder/nav.php'); ?>

Pastor_Pete

5:13 pm on May 8, 2008 (gmt 0)

10+ Year Member



I am having trouble making the include always refer to the correct folder. How do you get it to go to the root every time? Sometimes I need to go up one level, or two or maybe none, depending on what level page I am working on.

thecoalman

6:38 pm on May 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



See above. :P Assuming you have the directory structure www.example.com/somefolder/nav.php that should work on any page.

Pastor_Pete

2:48 am on May 12, 2008 (gmt 0)

10+ Year Member



Thanks. I got the server side include to work. I appreciate the help.
Pete