SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jun 2014
    Location
    Deepest south west of the United Kingdom
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making the change!!!

    Well hello fellow design peeps.

    I have a question of which you may be able to answer for me. Here's the deal. Take into account here that I am pretty naive and learning all the time!!!!

    Right. I have created a website of five pages all linked together. So far so good. Here's my quandary. By my own stupidity I didn't real plan it all out and I now want to add another link. Is there a way of putting that link on all five pages in one hit or do I have to enter them all individually on each page? If it's the latter then so be it, my own fault for not thinking it through. If it's the former, then I could do it in one go. Not being lazy, don't you know...

    Lesson to self... remember PPPPPP

    Here's hoping eh?

    Kind regards

    Ray

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,251
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    Only 5 pages and you're already learning about maintenance problems!

    I was much more stubborn and didn't learn until I had many pages

    Got PHP? It's fairly easy to create a "nav-menu.php" file and include it in your page files.
    Or you could go with a templating solution if you're up to that.

  3. #3
    SitePoint Member
    Join Date
    Jun 2014
    Location
    Deepest south west of the United Kingdom
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi there and thanks for the quick call back.

    I understand where you are coming from, but I tend to panic early. I was going to do a lot more pages, but saw the error of my ways so stopped abruptly.

    I am sorely tempted to go down the template route here, and its a challenge for me as well. (Took me three days to do five pages)

    Glad I found this forum. Thats two questions answered within twelve hours.

    Many thanks for the reply and I'll let the world know how I got on.

  4. #4
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    6,408
    Mentioned
    273 Post(s)
    Tagged
    5 Thread(s)
    PHP includes are great, and very easy to use. However, as you're not currently using them, a simple solution would be to do a "find and replace". My editor (Bluefish) allows me to choose whether to make changes to one document or all open documents, and I image other editors are the same. Just select the link above or below the place you want to insert a new link, then replace that on all pages with the code for the two links.


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
  •