The solution you provided works great. Thanks very much!
-----Original Message-----
From: Mike Nimer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 21, 2004 6:26 AM
To: CF-Talk
Subject: RE: cftreeitem Duplicate Parent Name Problem
The problem is CFTREE now builds the tree based on what you say using the
parent attribute, not the position of the child tags. And unfortunately with
that change we can't guess which "Projects" parent you meant. But there is a
solution, there is a display attribute you can use. What you need is to
define unique value/parent combo's but use the display attribute so they
render with the same name in the tree.
Also there is a hotfix available for cftree/cfform, if you haven't already
you should install that as well. It has some other fixes for cfform (alerts
in order, etc..)
--------------------
<cftree name="test1">
<cftreeitem value="2003">
<cftreeitem value="2003Projects" display="Projects" parent="2003">
<cftreeitem value="2003 Project 1" parent="2003Projects">
<cftreeitem value="2003 Project 2" parent="2003Projects">
<cftreeitem value="2004">
<cftreeitem value="2004Projects" display="Projects" parent="2004">
<cftreeitem value="2004 Project 1" parent="2004Projects">
<cftreeitem value="2004 Project 2" parent="2004Projects">
</cftree>
--------------------
hth,
----nimer
_____
From: Michael Schlei [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 6:09 PM
To: CF-Talk
Subject: cftreeitem Duplicate Parent Name Problem
I recently upgraded Coldfusion from 6.0 to 6.1 (was forced to do so after
upgrading the server to Windows Server 2003). Now, I'm having problems with
cftreeitems being put in the wrong place in the cftree control. The
following code shows an example of the problem:
<cftree ..>
<cftreeitem value="2003">
<cftreeitem value="Projects" parent="2003">
<cftreeitem value="2003 Project 1" parent="Projects">
<cftreeitem value="2003 Project 2" parent="Projects">
<cftreeitem value="2004">
<cftreeitem value="Projects" parent="2004">
<cftreeitem value="2004 Project 1" parent="Projects">
<cftreeitem value="2004 Project 2" parent="Projects">
</cftree>
In 6.0, this code worked perfectly and placed the 2004 projects in the
Projects folder under 2004. But in 6.1, this no longer works - the 2004
projects are placed in the projects folder under 2003 - Coldfusion cannot
properly handle the duplicate parent name in different sections of the tree.
I would hope that there is a fix for this, as the cftree control is of no
use to me the way it is now. By the way, I have already installed the
following hotfix from Macromedia, which has done nothing to solve this
problem:
http://www.macromedia.com/support/coldfusion/ts/documents/cfform_hotfix.htm
. Any assistance would be much appreciated. Thank you for your time.
_____
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

