Earlier versions did support drag and drop.
"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: [email protected] <[email protected]> To: [email protected] <[email protected]> Sent: Wed May 03 07:50:00 2006 Subject: [farcry-dev] Re: Load site tree I don't know about the earlier versions, but 3.0 doesn't support drag & droping the items in the navigation tree. On 5/3/06, M Wheeler < [EMAIL PROTECTED]> wrote: Hi Thanks, but what I really wanted to do was load the load the navigation in the left frame for easy access, and drag from there to a text box in the news item Here is a button I was using in older version of farcry b220 <input type="button" value="Load Site Tree" onClick="top.treeFrame.location='/farcry/navajo/overview_frame.cfm?rootobjec tid=#APPLICATION.NAVID.HOME#';" title="Load site tree, right-click page and select insert" style="width: 80px;"> farcry 3 does not like the top.treeframe part of this and returns a javascript error saying so. Any ideas? Cheers Mark On 5/3/06, Blair McKenzie < [EMAIL PROTECTED]> wrote: 1) For semi-permanent links you can set up an alias on the navigation item, and use #application.navid.youralias# to get the url. 2) If you want to allow the user to select a navigation item like from a drop down list, you could use code like what is used in the quick site builder to select the starting point: <cfscript> o = createObject("component", "#application.packagepath#.farcry.tree"); qNodes = o.getDescendants (dsn=application.dsn, objectid=application.navid.root); </cfscript> <select name="startPoint" id="startPoint"> <option value="#application.navid.root#">#application.adminBundle[session.dmProfile. locale].Root#</option> <cfloop query="qNodes"> <option value="#qNodes.objectId#" <cfif qNodes.objectId eq application.navid.home>selected</cfif>>#RepeatString(" |", qNodes.nlevel)#- #qNodes.objectName#</option> </cfloop> </select> 3) You can also use the object picker in the widgets tag library which opens a popup that lists all of a given type (though it won't show the tree structure and the gui is a little bit buggy): <cfimport taglib="/farcry/farcry_core/tags/widgets" prefix="widgets"> <widgets:objectPicker typename="dmNavigation" fieldname="link" fieldlabel=" #application.adminBundle[session.dmProfile.locale].linkLabel# " fieldvalue="#output.link#"> Blair On 5/3/06, M Wheeler < [EMAIL PROTECTED]> wrote: Sorry, custom admin code, and I am trying to link back to a navigation item in my main site from a news item. using the site navigation to populate the text box, drag and drop. :) Cheers Mark On 5/3/06, Blair McKenzie < [EMAIL PROTECTED]> wrote: That's not very clear. Are you talking about the website or custom admin code? And what exactly are you trying to link to? Blair On 5/3/06, M Wheeler < [EMAIL PROTECTED]> wrote: Hi Using Farcry 3 and have a news item that needs to have a load site tree button for linking back to main site navigation if required. Curently just have a standard form output for manual input of link <label for="link"><b>#application.adminBundle[session.dmProfile.locale].linkLabel#< /b> <input type="text" name="link" id="link" value="#output.link#" maxlength="255" /><br /> </label> Link would look like index.cfm?objectId=4C8B36A5-40CA-68F8-EC192A9CC08DC977 but load site tree would be more convenient for user, is there a widget for this functionality? Thx Mark This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev -~----------~----~----~----~------~----~------~--~---
