<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Page comments</title>
		<link>http://www.ssbits.com/home/</link>
		<atom:link href="http://www.ssbits.com/home/" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_505</link>
			<description>Ah, ok. I'll figure this stuff out eventually!

Thanks for your help.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_505</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_504</link>
			<description>Oh sorry I didn't explain that. It's looking for an instance variable since $this-&gt;owner is an object instance. Static methods can't be called dynamically in the same way so it had to be instanced. 

Glad it worked out for you!</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_504</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_503</link>
			<description>The var_dump() returns array(0){}.

But changing the $customSort from a static variable to a public variable works. I don't really understand why, but at least it works.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_503</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_501</link>
			<description>@jWacky I tried out a really basic example with 2.4.5 today and it works for me. Could you perhaps send me your code or something?</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_501</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_500</link>
			<description>Hey Mck could you try doing a var_dump() on $customSort in SiteTreeSorter just before it sets $sortDir (after line 4 in the code example) and tell me what it says?</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_500</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_499</link>
			<description>Hey Marcus, thanks for this tutorial. It's exactly what I was looking for.

I've been having some trouble with it though.
No matter what I set $customSort as, I get an error saying &quot;Undefined offset: 0&quot; from the last line in the SiteTreeSorter class.

I'm probably missing something really obvious but I just can't see it.

Anyone have any ideas?</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_499</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_463</link>
			<description>Hey jWacky I'll try to help you out later today. I haven't tried the solution in 2.4.5 (I think) but it should work. I'll try to get back to you here later today with a working example.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_463</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_462</link>
			<description>I just cannot get this working. I'm using 2.4.5 and have done the following:
- Created SiteTreeSorter.php in mysite/code with the above class
- Added Object::add_extension('Page', 'SiteTreeSorter'); to _config.php
- In my NewsHolder.php I've added &quot;static $customSort = array('Title','ASC');&quot; in the model.

But it's not having any effect, the children of the NewsHolder do not change to alphabetical order.

Any ideas? Anyone able to provide a working example?</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_462</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_362</link>
			<description>Yeah I'm thinking about giving that one another go but like you said, the amount of js to go through is kind of staggering.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_362</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_361</link>
			<description>nice, thanks
i'd also be interested in a solution to have pages arranged in another position than at the bottom of the current tree, instantly when they are created. 
must be some javascript-magic though, and i couldn't find my way through the heavy js cloud on the cms side.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/#PageComment_361</guid>
		</item>
		

	</channel>
</rss>