Can I make my nav from an external XML document.

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.



Go Back   Webforumz.com > Main Forums > Planning Your Website > Website Planning

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 10th, 2007, 07:33
Junior Member
Join Date: Mar 2007
Location: Australia
Age: 19
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote

  #2 (permalink)  
Old Mar 10th, 2007, 07:36
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
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
Reply With Quote
  #3 (permalink)  
Old Mar 10th, 2007, 07:43
Junior Member
Join Date: Mar 2007
Location: Australia
Age: 19
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
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 &copy; 2007</p>
</body>
</html>
Reply With Quote
  #4 (permalink)  
Old Mar 10th, 2007, 07:54
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: is it all worth it??? CSS Layout

hahaha...and actually there is a better method to accomplish that same effect. Which I use on most of my sites, so that it is easier to maintain. Notice with this one I am using a tag called PHP echo, and I am echoing the title and meta details...I find this to be very effective.

File Attached!!
Attached Files
File Type: zip Example.zip (2.1 KB, 38 views)
Reply With Quote
  #5 (permalink)  
Old Mar 10th, 2007, 08:06
Junior Member
Join Date: Mar 2007
Location: Australia
Age: 19
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Reply With Quote
  #6 (permalink)  
Old Mar 10th, 2007, 08:08
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
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!!
Reply With Quote
  #7 (permalink)  
Old Mar 10th, 2007, 08:12
Junior Member
Join Date: Mar 2007
Location: Australia
Age: 19
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #8 (permalink)  
Old Mar 10th, 2007, 08:44
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
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.
Reply With Quote
  #9 (permalink)  
Old Mar 14th, 2007, 11:53
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I make my nav from an external XML document.

verkevinmanering69err455 : Please create your own thread in the future.
Reply With Quote
  #10 (permalink)  
Old Mar 18th, 2007, 12:59
New Member
Join Date: Mar 2007
Location: Wales
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 12:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43