SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    I LOVE THIS SITE ! ! ! DougD's Avatar
    Join Date
    May 2000
    Location
    San Diego, CA
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I am redesigning my site and the template is pretty much complete.

    Is this possible? I have: a header (which includes a logo and banner) ; a top nav bar; a right nav bar; and a footer; plus the main content section.

    I would like to make all the components except for the content to be the same on all the pages. I would also like to be able to change those components any time I like by modifying only one page.

    Is this possible and if it is, is it really hard to setup?

    Thanks,

    Doug

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not at all, simply put each component in its own file and then use PHP include() to include where you want for instance a sample page might look like this.

    PHP Code:
    <?
    include("header.php");
    include(
    "topnav.php");
    ?>
    Put contnet here
    <?
    include("footer.php");
    ?>
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Bookmarks

Posting Permissions

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