This is a discussion on "Adding a new page...quick way to add to navigation bar?" within the Starting Out section. This forum, and the thread "Adding a new page...quick way to add to navigation bar? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Adding a new page...quick way to add to navigation bar?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Adding a new page...quick way to add to navigation bar?
I want to add a couple of new pages to my website and wondered if there was a way or tool to use to copy the new navigation menu to all pages instead of copying and pasting to each of the seperate pages...think there are around 13 so far. Just seems a little time consuming.
Ive copied my old website and basically pasted the info into dreamweaver before editing it for the new site....cheating I know but my web course starts this week! TIA. |
|
|
|
||||
|
Re: Adding a new page...quick way to add to navigation bar?
Try using PHP includes... http://www.webforumz.com/vbarticles....e&articleid=27
|
|
|||
|
Re: Adding a new page...quick way to add to navigation bar?
Thanks for that will have a read.
I have noticed that on each seperate page, depending on what page it is...there is a class active command. Ie, on the index page, the class active code is next to the index page, on the electrics page it is next to the electrics line in the navigation panel. Is this required as if Im reading it right, the includes code will just read the whole navigation panel as it is say on the index page to each of the subsequent pages without the seperate class active piece of code.....now Ive confused myself! lol. |
|
||||
|
Re: Adding a new page...quick way to add to navigation bar?
class active command?
could you explain please
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Adding a new page...quick way to add to navigation bar?
This is a section of the code from the index page.
<div id="siteNavigation"> <h1>Navigation</h1> <ul> <li><a href="index.html" class="active">Home</a></li> <li><a href="pictures.html" >Pictures</a></li> <li><a href="shipping.html" >Shipping</a></li> <li><a href="intheuk.html" >Once in the UK</a></li> <li><a href="electrics.html" >Electrics</a></li> <li><a href="headlights.html" >Headlights and Sidelights </a></li> <li><a href="rearlights.html" >Rear lights</a></li> <li><a href="holes.html" >Holes in the floor pans</a></li> <li><a href="brakes.html" >Brakes</a></li> <li><a href="wheelsandtyres.html" >Wheels and Tyres</a></li> <li><a href="engine.html" >Engine</a></li> <li><a href="transmission.html" >Transmission</a></li> <li><a href="runningrepairs.html" >Running repairs</a></li> <li><a href="howmuch.html" >How much</a></li> </ul> <li><a href="contact.html" >Contact us</a></li> <div id="listBreaker"> </div> </div> You can see the 'class="active"' code next to the index.html entry. On the pictures page, this is then shown next to the pictures.html entry and so on. Is this not required? Also, should the final </ul> come at the end of the navigation code rather than in front of the contact line? OK thanks for that Marc. Will try that on the next site I have a go at. Seems much better to just edit one page and be done with it. I guess if I had done this in the first place it would have saved a lot of copying and pasting! For now I think it may be best (easiest? ) just to add a couple of extra lines to my navigation menu on each page as I would have to create a new navigation page and then remove the existing navigation code from each of the existing pages. |
|
||||
|
Re: Adding a new page...quick way to add to navigation bar?
Quote:
have a look on this page if you click on different links they are highlighted in the nav is this what you want?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Adding a new page...quick way to add to navigation bar?
Alex, the website is www.pamsghia.co.uk It all seems to be working the way I want for now. Just wondered what the class active thing was and also the </ul> that I mentioned.
|
|
||||
|
Re: Adding a new page...quick way to add to navigation bar?
this :
<li><a href="howmuch.html" >How much</a></li> </ul> <li><a href="contact.html" >Contact us</a></li> <div id="listBreaker"> </div> should be: <li><a href="howmuch.html" >How much</a></li> <li><a href="contact.html" >Contact us</a></li></ul> <div id="listBreaker"> </div>
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: Adding a new page...quick way to add to navigation bar?
the class="active" is probably just to show a different state when you are on that page.
I usually call it "selected" but ... every designer has their way of doing things |
|
|||
|
Re: Adding a new page...quick way to add to navigation bar?
lol, thats what I thought....weird how it seems to be working!
Like I said, I have just copied and pasted a lot of code that i really know nothing about and edited it using dreamweaver in the split mode so I can actually see what changes Im making rather than actually learning the code!!! Good job my course starts this week. |
|
|||
|
Re: Adding a new page...quick way to add to navigation bar?
Quote:
lol, does that mean I can call myself a designer now then???? I wish... |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| internal navigation, Linking from one page to a specific div in another page. | Oak | Web Page Design | 5 | Feb 8th, 2008 22:54 |
| Adding a new page | crackafaza | PHP Forum | 7 | Feb 8th, 2008 22:08 |
| Adding music to a Web Page | Towbar | Introduce Yourself | 4 | Mar 12th, 2006 17:38 |