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
If I add something to one page I have to add it to all of them! grr.
Old 08-29-2008, 02:49 PM If I add something to one page I have to add it to all of them! grr.
Junior Talker

Posts: 2
Name: Marissa
Trades: 0
Is there any way that I can just add it to maybe one page and it automatically updates for all the other pages that I want the same thing on? Fore example. I have a navigation list with a bunch of links and everytime I add another link I have to go through ALL of my pages and add that link individually and its such a HUGE pain. Just wondering. I have a subdomain with ftp, etc. If anyone knows a way that I wouldn't have to do this (except iframes) i would be very grateful!
marissaslayouts is offline
Reply With Quote
View Public Profile Visit marissaslayouts's homepage!
 
 
Register now for full access!
Old 08-29-2008, 03:09 PM Re: If I add something to one page I have to add it to all of them! grr.
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Server Side Includes will take care of this for you
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 08-29-2008, 04:07 PM Re: If I add something to one page I have to add it to all of them! grr.
Extreme Talker

Posts: 176
Trades: 0
I do it it with asp, and it's very easy.
PHP works too.
Skeddles is offline
Reply With Quote
View Public Profile
 
Old 08-29-2008, 04:14 PM Re: If I add something to one page I have to add it to all of them! grr.
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
On the navigation side, is there any snippets anyewhere to show the page being shown to have a class of current for the link? so the link changes when its the one being viewed.

Thats the only thing been putting me off doing SSI for my links as I dont yet know enough php to do it - I have looked on the net and not found any snippets yet, not than dont assume you already know how to do it anyway
__________________

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
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 08-29-2008, 04:45 PM Re: If I add something to one page I have to add it to all of them! grr.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It's quite easy to do with javascript because most links already have a built in indicator of which page refers to which link (this.href)

but with any server side code it's only a process of checking the page name against the URL being written out (assuming a scripted navigation) and setting the classname accordingly.
__________________
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 08-29-2008, 05:02 PM Re: If I add something to one page I have to add it to all of them! grr.
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Thanks Chris

I *think* I may be able to do that with php with a little more swatting up (still learning as I go ). It would just be an if / else statement wouldn't it?

When you say scripted navigation would that just mean writting the scripts into the true / false statement? or would it mean assigning a variable to the links?

I am probably asking silly questions and when I read this post again will more than likely kick myself but what the heck, i'm very tired and "if you dont ask ya dont get" !

Sometimes wish I had a photographic memory
__________________

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

Last edited by bakerc; 08-29-2008 at 05:03 PM..
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 08-29-2008, 06:57 PM Re: If I add something to one page I have to add it to all of them! grr.
Banned

Posts: 4
Name: Network Support
Location: Long Beach, CA
Trades: 0
I usually use the php include feature inside a div

<div id="navigation"><?php include "URL-TO-NAVIGATION-File" ?></div>

Works fine with me.
clpafsk12 is offline
Reply With Quote
View Public Profile Visit clpafsk12's homepage!
 
Reply     « Reply to If I add something to one page I have to add it to all of them! grr.
 

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