Are you using cascading style sheets? -----Original Message----- From: Jeff [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:31 AM To: CF-Talk Subject: Context Sensitive, dynamic navigation include? How to accomplish?
I'd like to do the navigation on this particular site as an include. Creating the rollovers and table structure in one file and including it throughout the site. However, the design calls for the Navigation to change depending on what "section" you were in, regardless of the page in that particular section. For example, let's say that the rollover state for a navigational link is that the background turns red when you roll over it, and when you click to go to that particular section, that section remains red while browsing in that section. Then, when you move to another section of the site, by using the navigation, the previous section returns to normal, and the new section is swapped out with the red background. How can I accomplish this using one include? I'm not even really sure about how to proceed, but I was thinking of putting a switch statement in my application.cfm to someohow "label" a page as part of a particular "section" and on the include, maybe perform some kind of check to see which "section" you're in, but I'm not sure that's the best way to accomplish this. Has anyone done such a thing? (I'm sure someone has) and if so, how would you best proceed? I'm unsure about the order of processing when it comes to application.cfm versus a cfinclude. Is the include processed before application.cfm or is the include "included", THEN application.cfm is run, or is application.cfm actually processed twice (once when the include.cfm is run, and once after it's "included")? I would've thought that such a thing would require some sort of global tracking to determine where you're at...and whatnot. I could also stick each "section" of the site into it's own directory, so, for instance "About Us" could be in "/about" and "Contact Us" could be in "/contact" etc...and somehow use the path to determine the state of the navigation... Any ideas? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

