Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 05-16-2009, 06:26 AM Adding pages
Super Talker

Posts: 113
Name: Paul
Trades: 0
Hi all

Just a quick question, I need to find a quicker / easier way of adding a page, at the moment if I want a 2nd page I save an original page as the new page and then manually update the navigation bar in each page.

So could you put the navigation in a seperate page as an example called navigation.html and as part of the head in each page have 'includes navigation.html tag'

I'd need a little guidence with this if someone doesnt mind.

Thanks
fattony is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-16-2009, 01:30 PM Re: Adding pages
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
What you need is server-side includes. Not hard to do, you only need ONE file that contains your nav and that gets repeated on every page where you have the include.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-17-2009, 09:00 AM Re: Adding pages
Skilled Talker

Posts: 84
Trades: 0
You can either use server-side includes or if you are need to use php, you can use include() of php.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
- 1-888-869-HOST(4678)
Award winning Managed Hosting -
Please login or register to view this content. Registration is FREE

Managed Dedicated Servers. Reseller Discounts. 24/7 Impressive Tech Support
HivelocityDD is offline
Reply With Quote
View Public Profile
 
Old 05-17-2009, 05:30 PM Re: Adding pages
Super Talker

Posts: 113
Name: Paul
Trades: 0
Ok thanks, would either of you mind pointing me in a direction of an example?
fattony is offline
Reply With Quote
View Public Profile
 
Old 05-17-2009, 07:24 PM Re: Adding pages
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
To HivelocityDD's comment, PHP is a server-side scripting language.

Fattony here is a real simple example:
Your main page
HTML Code:
<?php
include "menu.php";
?>
The rest of your HTML content would go here. Note that you must save this file with the .php extension even if it only contains a little bit of PHP in it.
Your menu page
HTML Code:
<a href="">Menu #1</a>
So in this example when you change anything in menu.php it would be displayed on any pages referencing it.
__________________
DVD Movie Release Database:
Please login or register to view this content. Registration is FREE
Truly is offline
Reply With Quote
View Public Profile
 
Old 05-18-2009, 01:59 PM Re: Adding pages
Super Talker

Posts: 113
Name: Paul
Trades: 0
Thanks for that, once Ive got this one finished I'll look into trying it out, could be a while but thanks for the help
fattony is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Adding pages
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45479 seconds with 12 queries