Converting an Existing Front Page Web Site |
Use your browser "Back" arrow to return to the main page. |
Basic Considerations and Suggestions This is just another introduction, not a detailed guide. There are doubtless numerous good ways to proceed, depending on web complexity and personal preferences. I don't mean to harp on this but be sure to make a backup copy of a page before you begin working on it. Put the backup in a special folder or copy the page in-place, giving it another name. If you are renaming an active page (let's suppose you made your backup inside the same folder or web) for whatever purpose - replacement being one - EW will want to re-calculate links. Avoid this because the new pages you style and format will eventuially be named same as the ones they are replacing. My experience includes two methods, both of which work well for me. Overview of Methods:
Method #1 produces a much cleaner result right from the start if you are careful to copy content only but when highlighting large blocks of content incorporating style changes, the interior styling markup gets copied too. Method #2 may be better for some content. Occasionally, copying complex material can produce unexpected results because some needed styling markup gets left behind. This may be a nuisance to correct in the new version. It's up to you, how careful you are and how you prefer working.
Detailed description of the process For both methods:
You now should have a reasonably complete External Style Sheet containing the styles characterizing your site. For Method 1 Simply proceed as already described in "Basic Considerations/Overview of Methods". For Method 2 In Code View notice at the top of the legacy page something that looks like this: <html> That's legacy header code which (unless I am very mistaken) could one day cause problems as the web world moves on. You should replace the lines in green with the following ones in blue. (Depending on vintage of EW and revisions in the standard, this material is subject to change.) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> I hope that's good advice. The old header doesn't seem to do any harm right now but if your new page is going to be CSS compliant it should probably be that way in every respect. If using Method 1 you don't have to worry about this because the new page was generated by EW in the first place and is already standards compliant. Before making the replacement be sure to save the body styling attributes for building the .body part of your External CSS sheet, if not already done. Now Attach the External Style sheet. The legacy page will still look just fine (providing you have your .body style built). Go through the page highlighting each distinctive piece of content and applying your CSS styles just as with Method 1. 100% of your old hard-coded styling markup will still be there so don't expect any appearance changes to pop up. You can clean out the legacy code later. If the new CSS style is complete, the reference to it will go last and the hard-coded styles preceding it will be ignored. If the CSS style is incomplete, any legacy code needed to "fill in the blanks" will be retained following the CSS reference. This also applies to Method 1. No matter how you organize and proceed with conversion, remember to save good versions of converted pages and your evolving Style Sheet. If things get tricky, take backups at major editing points. This should be obvious. |