I needed the dynamic content "locked" to a particular tree node, node dependent on the visitors click-through path.
Two possibles solutions -
One: posted by Michael to change the cfc to have bUseInTree="1" - this works perfectly, but my site will have hundreds (hopefully thousands) of news items and i think that this will become too difficult to manage
Two: The linking of a news item is achieved by linking it to a tree node using related objects. I have moved and redeployed dmNews (and its edit plp) to a custom type and added a new screen for the related objects (just copied the one from dmHTML plp). I have pulled the entire tree into the lefthand pane when the related objects screen is shown.
Bread crumbs presentation is changed to:
<cfif isDefined("stObj.aRelatedIDs") and ArrayLen(stObj.aRelatedIDs) gt 0>
<skin:breadcrumb
objectid="#stObj.aRelatedIDs[1]#"
includeSelf = 1
separator=" / "
here="#stobj.Title#">
<cfelse>
<skin:breadcrumb
separator=" / "
here="#stobj.Title#">
</cfif>
Using the related objects allows a dynamic content (news, facts, links, events) to be "linked" to any node in the tree and opens up other possibilities as well - more on this to follow at a later date.
All appears to work, but the price of my version is maintaining it when future releases of Farcry come along, although I am not changing core, if the dmNews edit plp is changed in future releases then the modified version will have to as well, this will not be too difficult a there have been minimal changes to the code, just adding the "related" screen to the plp.
Any comments / improvements?
Chris
<<attachment: _dmNews.zip>>
--- 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
