sure, we do this using coolmenus from dhtmlcentral.com.  We store all menu items in a 
DB.  Tables store the actual menuitem and security information on each item granting 
different roles access to different items.  The menu is then generated via a 
customtag/include.  Works well.  the application.cfm file is no place for this.  We 
usually include it on each page requiring the menu...more control this way.  Each call 
hits the DB with some queries, cached for performance, then loop over the queries 
building the menus.

Doug

>-----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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to