Reply
Change one page, all other pages change..
Old 02-23-2006, 06:17 PM Change one page, all other pages change..
Novice Talker

Posts: 13
My website started out small with just a few pages to it so when i made a change to the design, like move a link in the left navigation or remove one it was simple to do it to the rest of them.

but now my site has many pages and when i make a change i have to go through all of them and make it to them all. on my site the only thing different on each page is the middle. to see what i mean go to www.rs-sidekick.com.

so how can i make it easier? im sure theres something i can do.. i dont want to use frames, so anything other than that.
Lanc1988 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 02-24-2006, 01:03 AM Re: Change one page, all other pages change..
vangogh's Avatar
Post Impressionist

Posts: 8,445
Name: Steven Bradley
Location: Boulder, Colorado
What you want to do is use a scripting language like php or asp. I use php and when I build a site I develop one page first as well as I can and then pull out all the code that will be common across all pages into separate files.

For example since the navigation will be the same across the site I'll take all of that code and place it in a file called menu.inc and then add the code like

<?php include "menu.inc" ?>

in the place on the original html page where the menu code used to be. The original html page will need to have the .php extension.

Similiarly for the footer and header code or any other code you only want to update once. Generally you can pull out all of the code into 2 or 3 files that's going to repeat across pages.

You will need to update every page of your site to do this now, but it will prbably be easier now than before the site gets even larger. Do you know a scripting language? It's probably a good idea to learn one before attempting this, but what I'm suggesting is pretty basic. It really is just that one line of php.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 02-24-2006, 01:06 AM Re: Change one page, all other pages change..
Novice Talker

Posts: 13
ill try it out with a few test pages first and if it works how i want it to ill update my whole site. thanks.
Lanc1988 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Change one page, all other pages change..
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11783 seconds with 13 queries