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
Displaying (and updating) content across multiple pages from a single location.
Old 03-21-2010, 11:03 PM Displaying (and updating) content across multiple pages from a single location.
Novice Talker

Posts: 10
Trades: 0
Not sure how to word that better or whether what is involved can be used with .html or only .php... but here goes. Say I have 100 pages - is there a way I can paste code into each of those pages and then control what is displayed on it from a single location? Like if I wanted to be able to change article links on the sidebar, etc., I would simply edit the single location and then have it reflected across all of the pages. I couldn't find anything on this, but as usual, I'm sure it's just because I don't know what it is called. And it probably requires .php but thanks in advance for any help.
ImgVerification is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-22-2010, 09:20 AM Re: Displaying (and updating) content across multiple pages from a single location.
TheDon's Avatar
Extreme Talker

Posts: 216
Name: Don
Trades: 0
Yes, I changed my pages to .php
The below was were my top navigation code was, I made a new file called topnav.php in a incl folder and pasted my navigation code in there.

If you put the below code on every page where the navigation menu is, then you can change every page by just editing the incl/topnav.php page
Saves a hell of a lot of time

Quote:
<?php include_once ('incl/topnav.php'); ?>
__________________
[
Please login or register to view this content. Registration is FREE
] [
Please login or register to view this content. Registration is FREE
] [
Please login or register to view this content. Registration is FREE
]
TheDon is offline
Reply With Quote
View Public Profile
 
Old 03-22-2010, 09:21 AM Re: Displaying (and updating) content across multiple pages from a single location.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Server Side Includes
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-25-2010, 12:19 AM Re: Displaying (and updating) content across multiple pages from a single location.
Novice Talker

Posts: 10
Trades: 0
Awesome - thank you both very much for the help!
ImgVerification is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Displaying (and updating) content across multiple pages from a single location.
 

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.20279 seconds with 12 queries