Reply
Navigation bar: differentiating the current page
Old 04-11-2004, 05:03 PM Navigation bar: differentiating the current page
Skilled Talker

Posts: 93
Every time I create a website I promise myself that next time I'm
going to free myself from recoding every detail on every page every
time I make a change - that I'll use SSI from here on out.
And every time I don't do it for the same reason.
Actually, I use SSI for some copyright notices, and for collections
of internal links that I'm not feeling horribly neurotic about, but my problem
is this:

I want a navigation bar on the side of the page. From whichever page
you're on, I want all the other pages listed to appear as links. But
the listing for the current page I want to be different - I don't
want it to be a link, or I want a different color, or there's
*something* I want to make it stand out.

So the code has to be a little different for each page- and not in the same place. I think about this for a few minutes and my head is in a pretzel. I see great sites (which I doubt are completely hand coded) that make the differentiation, but maybe they're doing something more sophisticated - some way to id which page they're on and have the code adjust accordingly? Feels out of my league, (probably leading somewhere heavier than SSI?) but I
thought I'd ask.

Thanks,
Amy
AmyD is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-12-2004, 05:41 PM
ppedersen's Avatar
Super Talker

Posts: 115
Location: Tampa Bay, FL - USA
Amy,

You’re absolutely right when you say, “maybe they're doing something more sophisticated”. The type of thing you are talking about doing can easily be done with a server side scripting language like PHP or ASP. The reason you mentioned above is the very same reason that I switched from using SSI to PHP. On my company’s Web site I have navigation coded only one time, but based on where you are within the site it highlights the current directory.

It sounds like you are ready to move up to the next level of Web design, which will give you much more freedom and control ...And you can do a lot with just the simple stuff, like IF-THEN statements. The way it works is that you include a file, just like with SSI, but that file has dynamic elements to it. For instance, in the menu on my company’s website I say, in effect, “If the directory is ‘this’ then display ‘xx’ or else display ‘yy’”.

It is not too difficult to learn to do very simple programming like this, you just need to get a good book. The best way, I have found, to pick the right book is just to Borders or Barnes & Noble and simply flip through them and find one that has examples of how to do the things you want to do. There are also tutorial sites, but its generally harder to find everything you need. However, if you have more time then money then just look for the free stuff online. I have neither but what I have the least of is time ;-)

You also need to decide which road you want to take. If you will be working with large companies or are generally hosting your sites on Microsoft IIS servers, then ASP is probably a better choice. However, if your clients have tighter budgets or you find yourself hosting your sites on Apache servers, then PHP is probably a better choice; as it is free, “open source”, and there tends to be much more free scripts out there than ASP. The good news is that they are very similar so, whichever you pick, you can easily switch later.

There’s also ASP.NET, but you need to know some ‘hard core’ programming for a lot of that. Unless you plan on learning C# or VB programming, I would stick with the other two.

Hope that helped.
__________________
Profile (all posts)
Paul Pedersen's Website
ppedersen is offline
Reply With Quote
View Public Profile Visit ppedersen's homepage!
 
Old 04-12-2004, 10:56 PM thank you!!!!
Skilled Talker

Posts: 93
Thank you Paul!
This is great. I didn't think anyone would be responding to this one. I thought there was a route to take that I was unaware of, I just had no idea which one. I actually played with php a little to run some queries off a sql database on one of my websites. So this gives me reason to break back into all that.
Thank you so so much
Amy
AmyD is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Navigation bar: differentiating the current page
 

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

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