Steve,

Collins, Steve wrote:
We're setting up a team intranet and plan to leverage the calendar
display for event objects as well as the news objects.  It's all working
fine except that when I click on a news or event item from their display
pages - of which they are conceptually a child, they then render as
children of Home.  So, instead of getting:
Home/What's On/Christmas Party
I get:
Home/Christmas Party

The tree hierarchy is only a reflection of the dmNavigation objects. When you reference an object that is not in the tree or rather not directly associated with a dmNavigation object, it loses its positional context.


This is actually a good thing because these sorts of objects can appear anywhere in the hierarchy depending on their categorisation. eg. your event might appear under several sections of the website.

Which then borks my whole navigation/structure concept.  Is there some
way to "encourage" these objects to behave as children of the page their
called from?  I would prefer not to hack the code, as I figure there
should be an elegant way of doing this.

Luckily this is easy enough to manage. The breadcrumb is simply a presentation layer widget that takes a navigation point as a parameter. By default this is the parent dmNavigation object or application.navid.home if none is available. You just need to pass in the objectid of the navigation point you want.


Typically this is done in one of two ways:
-- pass a navigation id from the parent on the URL (or other state management option) and pass this into the breadcrumb tag. This allows you to retain the exact hierarchy of the tree


-- pass in a specific navigation point, usually using a nav alias. For example, with events you might set up an "events section" on the website with an alias application.navid.events. Then you could make this part of the breadcrumb regardless of where the event was originally linked from

You could even have a combination of the two -- eg if you can't work out the parent, or the url is truncated or something then default to the events section.

Hope that helps,

-- geoff
http://www.daemon.com.au/


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

Reply via email to