Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Senior Member Aleister's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    250
    Member #
    2329
    I have been making web pages for a while, and dont really have any problems 'implementing' tables, but my problem is this.
    When frames are used, and you want to change your navigation links on the side, you just edit the proper frame.
    When using tables for design however, each page is of course its own entity, and if you need to change your navigation links or menu etc.. you have to change it for every single file.

    What I'm wondering, is what is the best way to do this ? Surely sites with hundreds (or thousands) of pages, do not manually go through and edit every file. How is this done? I have been looking for info on this, but the only thing i found was a mention of using a search and replace program, but I dont see how that would work well..

    Any thoughts? Thanks!
    The Temple of Dagon | Dagon Design
    "That is not dead which can eternal lie, And with strange aeons even death may die." - HPL

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Use Server Side Includes (SSI):

    Server Side Includes are special tags that can be used in PHP, ASP, JSP, and SHTML scripts to include the contents of one text-based (html, etc.) file into another.

    Find details on how to use them here: http://www.webdesignforums.net/showt...5519#post68869

  4. #3
    Junior Member chrisinthesun20's Avatar
    Join Date
    Dec 2002
    Location
    The Netherlands (British)
    Posts
    8
    Member #
    352
    Includes are probably the "tidiest" way of doing things - but they require some forward planning to implement effectively.

    An alternative, low-tech method is to use the find/replace tool in Dreamweaver - enter the block of code in find that you want to change -(assuming that it is the same across multiple pages), then enter the new block of code that you wan't to replace it with in the second box. If you run this from the site view (not the individual page view), then it will propogate across ALL the pages, and change every one.

    I've used this method a lot for doing bulk changes to older wepages that it was not time-effective to implement includes on....

  5. #4
    Senior Member Aleister's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    250
    Member #
    2329
    well i finally decided to implement includes.. it went suprisingly well
    i just cut out the menu code.. stuck it in menu.txt, added the include line in my html files, and renamed them to shtml... works great!

    i didn't realize it was that simple.. unless theres something important im not doing *shrug*
    The Temple of Dagon | Dagon Design
    "That is not dead which can eternal lie, And with strange aeons even death may die." - HPL

  6. #5
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    you can actually include any repetitious part of an HTML doc into server side includes, including:
    • Navigation
    • Framework (the basic site layout)
    • Subroutines
    • Sub-framework structures
    • Rotating XML sub-documents
    • and more!


    Using a server-side programming language like ASP, PHP, or JSP makes includes especially powerful, with the ability to pass parameters to them or include server-side functionality through their inclusion.

    You're on your way to discovering a whole new world!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:20 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com