<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Nested Set Trees in ColdFusion (v0.8)</title>
	<atom:link href="http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/</link>
	<description></description>
	<lastBuildDate>Sun, 08 Jan 2012 15:53:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/comment-page-1/#comment-20</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Thu, 11 Jun 2009 01:31:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-20</guid>
		<description>Ben, new zip is up. Let me know if any problems with the mysql script - I haven&#039;t tried it myself.

Thanks</description>
		<content:encoded><![CDATA[<p>Ben, new zip is up. Let me know if any problems with the mysql script &#8211; I haven&#8217;t tried it myself.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/comment-page-1/#comment-19</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Wed, 10 Jun 2009 21:00:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-19</guid>
		<description>Ben, you know I think I forgot to include it. I will add and upload asap.</description>
		<content:encoded><![CDATA[<p>Ben, you know I think I forgot to include it. I will add and upload asap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/comment-page-1/#comment-18</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 10 Jun 2009 20:20:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-18</guid>
		<description>does the latest zip contain the MySQL.sql file? I only see the mssql. Thanks.</description>
		<content:encoded><![CDATA[<p>does the latest zip contain the MySQL.sql file? I only see the mssql. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/comment-page-1/#comment-16</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Thu, 02 Apr 2009 14:35:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-16</guid>
		<description>Laker, thanks for the note!</description>
		<content:encoded><![CDATA[<p>Laker, thanks for the note!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laker Netman</title>
		<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/comment-page-1/#comment-15</link>
		<dc:creator>Laker Netman</dc:creator>
		<pubDate>Thu, 02 Apr 2009 14:30:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-15</guid>
		<description>Hi. I ran into an issue where I needed a sub tree without including the sub tree root node itself in the results.
After some thought and useless coding :) I came up with this solution; I duplicated the &quot;getCategorySubtree&quot; method and renamed the copy &quot;getCategorySubtreeBelowNode&quot;. The only change required was in the query.
This line:
nst.lft &gt;= &lt;cfqueryparam cfsqltype=&quot;cf_sql_integer&quot; value=&quot;#node.getLeft()#&quot;&gt;
Becomes:
nst.lft &gt; &lt;cfqueryparam cfsqltype=&quot;cf_sql_integer&quot; value=&quot;#node.getLeft()#&quot;&gt;

By using &quot;greater than&quot; instead of &quot;greater than or equal&quot; the subtree root node is excluded from the results.

In my case, I am using the results to produce an unordered list for a suckerfish menu and kept getting the sub tree root as the top menu item, rather than the contents of the sub tree, which is what I really wanted.

Now it works as expected. Hope this helps someone else.

Laker

P.S. If you try this, don&#039;t forget to change the method name in the calling page ;-)</description>
		<content:encoded><![CDATA[<p>Hi. I ran into an issue where I needed a sub tree without including the sub tree root node itself in the results.<br />
After some thought and useless coding <img src='http://blog.stannard.net.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I came up with this solution; I duplicated the &quot;getCategorySubtree&quot; method and renamed the copy &quot;getCategorySubtreeBelowNode&quot;. The only change required was in the query.<br />
This line:<br />
nst.lft &gt;= &lt;cfqueryparam cfsqltype=&quot;cf_sql_integer&quot; value=&quot;#node.getLeft()#&quot;&gt;<br />
Becomes:<br />
nst.lft &gt; &lt;cfqueryparam cfsqltype=&quot;cf_sql_integer&quot; value=&quot;#node.getLeft()#&quot;&gt;</p>
<p>By using &quot;greater than&quot; instead of &quot;greater than or equal&quot; the subtree root node is excluded from the results.</p>
<p>In my case, I am using the results to produce an unordered list for a suckerfish menu and kept getting the sub tree root as the top menu item, rather than the contents of the sub tree, which is what I really wanted.</p>
<p>Now it works as expected. Hope this helps someone else.</p>
<p>Laker</p>
<p>P.S. If you try this, don&#8217;t forget to change the method name in the calling page <img src='http://blog.stannard.net.au/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/comment-page-1/#comment-14</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Sat, 21 Mar 2009 03:12:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-14</guid>
		<description>Had a chat with Laker offline. The problem was due to the reindexing utility using a default treeId of 1, while the library assumes a default treeId of 0 (when there is only one tree in use).

I think a default value of 1 is probably a better choice so I am planning to make the following minor change to the library:

NestedSetTreeTable.cfc

Change the default value of the treeId argument in the getNestedSetTree() function from 0 to 1:

&lt;cffunction name=&quot;getNestedSetTree&quot; output=&quot;false&quot; returntype=&quot;NestedSetTree&quot;&gt;
       &lt;cfargument name=&quot;treeId&quot; type=&quot;numeric&quot; required=&quot;false&quot; default=&quot;1&quot;&gt;
       &lt;cfreturn createObject(&quot;component&quot;,&quot;NestedSetTree&quot;).init(this,arguments.treeId)&gt;
&lt;/cffunction&gt;</description>
		<content:encoded><![CDATA[<p>Had a chat with Laker offline. The problem was due to the reindexing utility using a default treeId of 1, while the library assumes a default treeId of 0 (when there is only one tree in use).</p>
<p>I think a default value of 1 is probably a better choice so I am planning to make the following minor change to the library:</p>
<p>NestedSetTreeTable.cfc</p>
<p>Change the default value of the treeId argument in the getNestedSetTree() function from 0 to 1:</p>
<p>&lt;cffunction name=&quot;getNestedSetTree&quot; output=&quot;false&quot; returntype=&quot;NestedSetTree&quot;&gt;<br />
       &lt;cfargument name=&quot;treeId&quot; type=&quot;numeric&quot; required=&quot;false&quot; default=&quot;1&quot;&gt;<br />
       &lt;cfreturn createObject(&quot;component&quot;,&quot;NestedSetTree&quot;).init(this,arguments.treeId)&gt;<br />
&lt;/cffunction&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laker Netman</title>
		<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/comment-page-1/#comment-9</link>
		<dc:creator>Laker Netman</dc:creator>
		<pubDate>Thu, 19 Mar 2009 10:03:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-9</guid>
		<description>First let me say &quot;Thank you!&quot; for this library.

I am starting a huge rewrite of the company web sites of my employer, from the DB on up. The current category management system is, well, &quot;poor&quot; to say the least. I&#039;m moving our product categories into a nested set model and had begun writing my own routines when I found your library.

However, I am running into some trouble utilizing the data I already have. Let me elaborate...
I dropped 0.8.0 into one of my beta sites and began doing some testing via the Demo app. Everything worked as expected, so I changed the datasource in the application.cfc to point to one of my beta DB instances (on MSSQL2K). All I had to do was modify a couple field names (e.g. category_id to categoryId) and proceeded to index my data without incident. The hierarchy and node values appeared correctly in the demo app. The issue is that none of the functions (Delete,New,Move Up,Move Down) now work correctly. Clicking the &quot;Delete&quot; link refreshes the page, but the node or branch is not removed, which I confirmed by inspecting the raw tables. The &quot;Move&quot; links throw &quot;Invalid sibling&quot; errors. I have added cfdumps at various points and found that in the case of the siblings errors the getLeft() and getRight() methods are returning 0 [zero] which is, of course, not correct. The &quot;Delete&quot; has me baffled. The links are populated with the correct categoryId values when the page renders.

Obviously, I believe it&#039;s an issue with my data, but I&#039;m not sure what to do next. My category table schema is: categoryId, categoryName, categoryDescription, categoryURL, parentCategoryId. The categoryId and parentCategoryId fields are integers and the current convention stores depth information by using increments of 1000 in the categoryId (i.e., 3000s are under 2000s, 2000s under 1000s, where &quot;1000&quot; if the root).

Any thoughts?

TIA,
Laker</description>
		<content:encoded><![CDATA[<p>First let me say &quot;Thank you!&quot; for this library.</p>
<p>I am starting a huge rewrite of the company web sites of my employer, from the DB on up. The current category management system is, well, &quot;poor&quot; to say the least. I&#8217;m moving our product categories into a nested set model and had begun writing my own routines when I found your library.</p>
<p>However, I am running into some trouble utilizing the data I already have. Let me elaborate&#8230;<br />
I dropped 0.8.0 into one of my beta sites and began doing some testing via the Demo app. Everything worked as expected, so I changed the datasource in the application.cfc to point to one of my beta DB instances (on MSSQL2K). All I had to do was modify a couple field names (e.g. category_id to categoryId) and proceeded to index my data without incident. The hierarchy and node values appeared correctly in the demo app. The issue is that none of the functions (Delete,New,Move Up,Move Down) now work correctly. Clicking the &quot;Delete&quot; link refreshes the page, but the node or branch is not removed, which I confirmed by inspecting the raw tables. The &quot;Move&quot; links throw &quot;Invalid sibling&quot; errors. I have added cfdumps at various points and found that in the case of the siblings errors the getLeft() and getRight() methods are returning 0 [zero] which is, of course, not correct. The &quot;Delete&quot; has me baffled. The links are populated with the correct categoryId values when the page renders.</p>
<p>Obviously, I believe it&#8217;s an issue with my data, but I&#8217;m not sure what to do next. My category table schema is: categoryId, categoryName, categoryDescription, categoryURL, parentCategoryId. The categoryId and parentCategoryId fields are integers and the current convention stores depth information by using increments of 1000 in the categoryId (i.e., 3000s are under 2000s, 2000s under 1000s, where &quot;1000&quot; if the root).</p>
<p>Any thoughts?</p>
<p>TIA,<br />
Laker</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hussein Grant</title>
		<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/comment-page-1/#comment-6</link>
		<dc:creator>Hussein Grant</dc:creator>
		<pubDate>Tue, 17 Mar 2009 10:17:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-6</guid>
		<description>WOW! That is very encouraging news. My current project will be using the heck out of the new tree features so this is just fabulous.</description>
		<content:encoded><![CDATA[<p>WOW! That is very encouraging news. My current project will be using the heck out of the new tree features so this is just fabulous.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/comment-page-1/#comment-3</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Sun, 15 Mar 2009 14:47:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-3</guid>
		<description>Hi Christian

That&#039;s great to hear. Thanks for the feedback.</description>
		<content:encoded><![CDATA[<p>Hi Christian</p>
<p>That&#8217;s great to hear. Thanks for the feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Küpers</title>
		<link>http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/comment-page-1/#comment-2</link>
		<dc:creator>Christian Küpers</dc:creator>
		<pubDate>Sun, 15 Mar 2009 11:45:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-2</guid>
		<description>Hello Kevan,

thanks a lot for this cfc; have used this in a shopping cart - app with about 7000 categories and 60.000 products. Former we had performance problems, now we are going very fine.</description>
		<content:encoded><![CDATA[<p>Hello Kevan,</p>
<p>thanks a lot for this cfc; have used this in a shopping cart &#8211; app with about 7000 categories and 60.000 products. Former we had performance problems, now we are going very fine.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

