Results 1 to 9 of 9

Thread: edit all navigation at once?

  1. #1
    Join Date
    Feb 2008
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Red face edit all navigation at once?

    Is there a way without buying like dreamweaver that I can edit all my pages navigation at once? It takes forever doing it indevidually...
    thanks

  2. #2
    Join Date
    Mar 2008
    Location
    TN
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You don't need Dreamweaver. What you need are server-side includes, which means you need PHP or .net.

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Hi Nailgunpro,

    The above poster is right, you'll need to utilized server-side includes. They didn't really do a good job in explaining it though, so I wanted to point you to tech_support's tutorial in doing this in PHP.

    You can find it in the Tutorials forum (link).

  4. #4
    Join Date
    Mar 2008
    Posts
    21
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    That is a good tutorial, however there is an easier way.

    First start by building your navagation in HTMl, CSS or whatever. Save the file as .inc ("yourfilename.inc").

    Second save your webpages as .shtml files ("yourindex.shtml").

    Then insert this code on the pages where you would like the navagation to appear: <!--#include virtual="yourfile.inc" -->

    Then by simply editing the .inc file you can change all the navagation on every page at once. I use this method on all of my sites, and it really makes life easier.
    Last edited by Jinglebelle; 03-28-2008 at 06:12 PM.

  5. The Following User Says Thank You to Jinglebelle For This Useful Post:

    Nailgunpro (04-03-2008)

  6. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    That assumes your host supports SSI, and also that you don't want more control as given by PHP/etc. It works, though, in some cases.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #6
    Join Date
    Feb 2008
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    wow thanks

  8. #7
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by Nailgunpro View Post
    Is there a way without buying like dreamweaver that I can edit all my pages navigation at once? It takes forever doing it indevidually...
    thanks
    If you don't mind using an iframe and innerHTML, you can do it with a simple (java-)script, see here.
    -----
    Arie Molendijk

  9. #8
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Or you can use ajax and have it update every mili. sec.
    Plus, why would you use an iframe when you should use a frameset?
    Jeremy | jfein.net

  10. #9
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by Nile View Post
    ...Plus, why would you use an iframe when you should use a frameset?
    Because the (hidden) iframe can be used for extracting external content (menu.html) with the help of innerHTML, see link in my previous post.
    -----
    Arie M.

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
  •