No announcement yet.

fed up amending links in html pages

  • Filter
  • Time
  • Show
Clear All
new posts

  • fed up amending links in html pages


    Last year i designed a site with about 15 pages.
    Is there a way i can have one page as a master or template, which, when i make changes to, will update the other pages throughout the site.
    Mainly this is for the navigation. i dont want to have to go through every page manually adding and deleting links.


  • #2
    Look up "php include"



    • #3
      If you use Dreamweaver you can set up a template file (.dwt) for you main content on the pages.
      Professional Pixel Pusher Designing the world around you. | Working daily to reach 10,000 hours of practice.


      • #4
        look up includes. they are available in all types of different coding languages.

        Or you can build your navigation via a database and that way you only alter the dbase. This is probably a bit overkill and very inefficient for most sites.

        Darryn Cooke : Orange County Graphic Designer


        • #5
          Originally posted by darryncooke View Post
          Or you can build your navigation via a database and that way you only alter the dbase. This is probably a bit overkill and very inefficient for most sites.
          Not if you cache the result a HTML file and use it as an include. This works well if the links aren't going to change much. Then if they do remove the cached file and the system should be set-up to make a new one. So once the first cached file is created the db is never again hit unless the cached file is removed. win win

          Either way unless your running a massive and I mean massive query repeating the query each page hit isn't going to be all that much of hit on server unless the server isn't very powerful. The biggest problem comes with load balancing but you don't really need to worry about that until your going several million hits day or so unless the server just plain out sucks.

          All this gets relatively complex though. You probably need to have a programmer set it up for you if your not familiar with server side programming. Those are the "optimal" solutions though.
          Last edited by tZ; 08-06-2009, 02:56 AM.


          • #6
            Tnx everyone. The php include worked a treat.






            Incredible Stock

            Latest Topics


            • John G
              Reply to Tips for my website
              John G
              well, 933px width on the footer looks off. My QA guys would give me hell about 'outline:0'. And there's some weird crap happening with error messaging in the map.
              QA would also give me crap about...
              Today, 02:04 AM
            • PrintDriver
              Reply to Chinese last name and racism.
              Because I do serious work for serious clients, they want to work with serious professionals.
              It's not that I don't try to find the folks behind those aliases. But time is money and I'm usually only...
              Today, 01:22 AM
            • PrintDriver
              Reply to Just Graduated... What Now?
              E, I've found lately that young graduates have no idea what direction they want to go in this field. They just don't know what is available to them out there.

              This University...
              Today, 12:07 AM
            • PrintDriver
              Reply to Anyone minds critiquing this Behance Project of Mine??
              Ah, sorry. I forget you aren't from around here.

              The LinkedIn thing, if you scroll down has the usage rules showing clear space and whatnot.
              The download is how they package their logo...
              Yesterday, 11:33 PM
            • PrintDriver
              Comment on Two little questions concerning the Pen Tool.
              I'd use the Blob brush, and the convert anchor tool more than the pen tool. And a Wacom.
              About 30-45 minutes maybe.

              It's quite possible live trace would do an adequate job on something...
              Yesterday, 11:10 PM
            GDF A division of Mediabistro Holdings Adweek | Mediabistro | Clio | Film Expo Group Contact Us | Terms of Use | Privacy Policy Copyright 2016 Mediabistro Holdings