Skip navigation
ReinePg
Currently Being Moderated

Use DWT template for a 50 page site? (Was: .dwt template)

May 2, 2013 3:30 AM

I want the same menubar on every page 50 pages on my homepage. Is it possible to use a .dwt template for that? If I change something in my .dwt template will this update all my pages as use the template?   

 
Replies
  • Currently Being Moderated
    May 2, 2013 2:29 AM   in reply to ReinePg

    I would not use a .dwt template for a 50 page site. The template will (hopefully) update all 50 pages but by far the best way would be to investigate SSI (Server Side Includes).

     

    The problem with .dwt template files is whilst they will update your pages you will also have to upload those 50 pages to your remote server every time you make a change to the template, tedious. If you use a SSI it means only uploading one file.

     

    After having worked with .dwt files (which can be problematical) and SSI - I know which I prefer.

     
    |
    Mark as:
  • Currently Being Moderated
    May 2, 2013 9:23 AM   in reply to ReinePg

    I second Osgood's sage advice.  Server-side Includes are much better than DW Templates.   Moreover, when a static site begins to exceed 50 pages, it's really time to start thinking dynamically -- server-side programming and SQL databases.  In the long run, it will make site management much easier.

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 2, 2013 11:29 PM   in reply to ReinePg

    You can have as many SSI files in a page as you like providing you have set everything up correctly so I don't know why you would be having issues.

     

    I dont know what kind of SSI you are using but in php you would simply insert the two 'calls' to the include files in a page template where you need them.

     

     

    <?php include('topMenu.php'); ?>

     

     

    <?php include('contactInformation.php'); ?>

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points