PDA

View Full Version : Newbie Needs Help!



dstokes
01-12-2004, 12:05 PM
Newbie designer needs help! Is there a way to code a website in such a way that when I make a layout change to part of a web page it updates all pages within a site? For instance, can I code the top section of each page like “get top section info” and the page will automatically load the page from a separate file. That way when I make a design change I would only have to update one file and have the layout exactly the same for all pages. This would be a time saver since I now have to change all pages just to add a link or graphic. I would like to implement this, if possible, before I make any more changes to a new site I am building. I would also appreciate any feedback you might be willing to give concerning the site itself. I have created a folder within my current website, DNSCreations.com, for this new site KenzieKreations.com until I am ready to go live. It can be viewed at www.dnscreations.com/kenziekreations .

Thanks for all that you guys (and gals) do. I have learned a wealth of information from reading the post and replies from this site!

jdiben
01-12-2004, 01:44 PM
If your host provides php you can use a php include. You would create, in a seperate file, all the html that you want to appear on every page and name it menu.htm or something relevent to what it is used for. Then on the pages that you want to update when the file updates you would add <?php include("menu.htm")?>. You would add that code in the part of the page that you want the menu.htm to be inserted. For this method to work, all of the pages that contain <?php include("menu.htm")?> must be changed from a .htm extension to .php and you would have to update all the links in your site to point to .php instead of .htm

Joe

dstokes
01-12-2004, 02:12 PM
Is it really that simple? Im at a loss for words to convey my thanks.

Keimos
01-14-2004, 08:26 PM
Just a quickie.

if you are not familiar with PHP you can also try templates with dreamweaver or Shared Borders with Frontpage and use CSS for text etc.

Easier if you are a non techy.

Have fun.