So, here a quick fix for making breadcrumbs work with dynamic content such
as custom types, new, events, etc.
First thing is in your teaser display you want to have a way to tell the
following page where you came from. We opted to do:
#application.url.conjurer#?objectid=#stObj.objectid#&refurl=#url.objectid#
Notice the refurl that pulls the objectid from the page that you set up your
teaser rule.
Then, just do the following to your bread crumb:
<cfif structKeyExists(url,"refurl")> <!--- if we are coming from a
teaser page with a refurl --->
<cfset newCrumb = url.refurl>
<cfset incSelf = 1>
<cfelse> <!--- if not use the default setup--->
<cfset newCrumb = request.navid>
<cfset incSelf = 0>
</cfif>
<skin:breadcrumb separator=" &##187; " here="#request.stobj.Title#"
linkClass="breadcrumb" objectid="#newCrumb#" startLevel="1"
includeSelf="#incSelf#">
Hope this makes sense.
--
Regards,
Michael J. Sammut
________________________________________________
F O U R E Y E S P R O D U C T I O N S
think | plan | create :: web site design & development :: NYC
E. [EMAIL PROTECTED] | T: 718.254.9557 ext. 101 | F: 718.254.0399
W. http://www.foureyes.com
---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004