This is a discussion on "Can I make my nav from an external XML document." within the Website Planning section. This forum, and the thread "Can I make my nav from an external XML document. are both part of the Planning Your Website category.
|
|
|
|
|
![]() |
||
Can I make my nav from an external XML document.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Re: is it all worth it??? CSS Layout
Ha, next step after CSS would be XML I guess. Does Anybody know if I can make my nav from an external XML document. So if I want to change a link on every page all i would have to do is change the link in my xml document?
|
|
|
|
||||
|
Re: is it all worth it??? CSS Layout
Ahhh, I would recommend a PHP included for that...lol
Try this page. http://www.webforumz.com/beginner-re...enu-static.htm That should help get you started |
|
|||
|
Re: is it all worth it??? CSS Layout
Omg, that actually just made my day.. I have no experience with PHP - I know a little how it works... but I didn't know it could do that :P... thats such a good reason why I should start to learn PHP haha.
------------------------- menu.html: Code: <h1>Navigation</h1> <ul> <li>Home</li> <li>Contact</li> </ul> your_page.php: Code: <html> <head> <title>page</title> </head> <body> <p>Welcome to our site</p> <?php include "menu.html"; ?> <p>Copyright © 2007</p> </body> </html> |
|
|||
|
Re: is it all worth it??? CSS Layout
wow thats heaps good. I understand the idea, but I'll just have the play around with it a bit ey. Hey i can make php sites on my local network right? (i have apache running)
|
|
||||
|
Re: is it all worth it??? CSS Layout
You can. I use a free program called xampp but if you already have a localhost/network then you should be ready to go man!!
|
|
|||
|
Re: is it all worth it??? CSS Layout
Dude u just got all the answers ey lol. Took me ages to get apache working. What I might do is install Linux on my other comp and xampp on that. Cause the comp I'm on now is like.. just stuff everywhere and I like to keep things clean haha.
|
|
||||
|
Re: is it all worth it??? CSS Layout
lol, I guess I have some answers...but not all...lol
I would highly recommend xampp, it will do almost anything you are looking to do. |
|
||||
|
Re: Can I make my nav from an external XML document.
verkevinmanering69err455 : Please create your own thread in the future.
|
|
|||
|
Re: Can I make my nav from an external XML document.
I dont know about php but in asp.net for example there is a treeview control which reads from an xml file, also other menu controls which read from xml files, no doubt php does something similar... probably worth investigating.
Designer Websites |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| document.getElementById and document.getElementByName is not working in FF | dhineraj | JavaScript Forum | 3 | Jul 26th, 2007 20:23 |
| Help with Downloadable document | fallregatta | Starting Out | 2 | Jun 11th, 2007 12:46 |
| can i add word document? | monstermunch | Starting Out | 8 | Apr 20th, 2007 16:49 |
| Load .swf file with External text in Another Flash document | ien | Flash & Multimedia Forum | 3 | Aug 31st, 2006 14:29 |
| How to Make Dowloadable Word Document | wanderer | Web Page Design | 4 | Apr 16th, 2006 20:48 |