I am just in the procss of attempting a similar breadcrumb trail for the 
navigation system of one of the sites I am working on.  the big difference in 
mine that i see is that there is no strict folder system and there are too many 
navs that share sub files to make a proper file system in that sense. do you 
know if the methods supplied in this thread would be usefue in my case?


>Or do the same but use CGI.SCRIPT_NAME which for that example would give you
>
>
>/Florida/East Coast/Miami/Hotels.cfm
>
>So its just a case of
>
><CFSET lstBreadCrumb = ListDeleteAt(CGI.SCRIPT_NAME,
>ListLast(CGI.SCRIPT_NAME, "/"), "/")>
>
>Then loop over the list to your specific formatting requrements
>
>HTH
>
>
>so if we had a file with the following url:
>
>/Florida/East Coast/Miami/Hotels.cfm
>
>we could assume that the breadcrumbs/waymarker line would say
>
>Home > Florida > East Coast > Miami
>
>The page name would be Hotels
>
>To get the path for the current page, you could use the
>GetDirectoryFromPath(GetBaseTemplatePath())
>
>To get the file for the current page, you could use the
>GetFileFromPath(GetBaseTemplatePath())
>
>You will need to know the "default path" to know how much of the front of
>the path to throw away.
>
>For example, if the path is
>g:\inetpub\wwwroot\Florida\EastCoast\Miami\hotels.cfm, you want to get rid
>of g:\inetpub\wwwroot\.
>
>You could place this in the Application.cfm file as a global variable.
><cfset defaultPath="g:\inetpub\wwwroot\"
>
>then remove this from the path, and treat the path as a \ delimited list.
>
>Does any of this make sense?
>
>Jerry Johnson
>
>
>I'm thinking we are going to used directory based file location.
>
>
>Luis
>
>Are your sections defined by 
>
>directory based file location
>fuseaction dependancy trees
>sitemap tree
>file naming convention
>extra sgml/xml/comments in the cfm file itself
>other
>?
>
>Jery
>
>
>
>> Does anyone know of a good tutorial on creating breadcrumb navigation 
>> with CF?
>
>
>I guess what is meant is this 
>
>your are here: home -> section -> subsection -> more sub sections
>
>
>WG 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302715
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to