Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2005
    Thanked 0 Times in 0 Posts

    Template vs. External File - HELP!


    I am creating a new website that will have the same navigation down the left side of the page. The site will also have links down the right side of the page. My question is what would be better: using a template in Dreamweaver from which to create all of the pages, or to create external files for the left and right sections? If you recommend the external files, what should I create them in?

    Thank you.

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Essex, UK
    Thanked 0 Times in 0 Posts
    Use server side includes.

    If your host supports PHP you can just create another file with your menu in - just the code for the menu - and save as a text file or html file (doesn't matter). Then whenever you want to insert the code just place this -

    <?php include("menu.txt") ?>

    If your host doesn't support PHP (most will though if your paying for hosting), you can use shtml. The page containing the include NEEDS to be saved as .shtml though. Then use the following -

    <!--#include virtual="menu.txt" -->


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts