Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Sitetree Dynamic Grouping implementation example?


Reply


4 Posts   1877 Views

Avatar
Martijn

Community Member, 271 Posts

4 August 2010 at 4:33am

Edited: 04/08/2010 4:34am

I would like to group childpages from a parent holder page by date, like discussed in this old topic:

http://www.silverstripe.org/archive/show/15416?start=32

There is some documentation on this page about Dynamic Grouping and DynamicTreeGroup.

http://doc.silverstripe.org/sitetree#dynamic_grouping

Does anyone has an example of how to implement this on a PageType?

And do I read it correct that it is posible to create fake nodes to group certain pagetype in a fake holder with:

class NewsMonthTreeNode extends ViewableData{ //? }

I tried to add add custom children getters like is said here:

http://doc.silverstripe.org/sitetree#custom_children_getters

But I don't really what I chould return there..

Avatar
Martijn

Community Member, 271 Posts

11 August 2010 at 3:01pm

Bumpy......

Avatar
biapar

Forum Moderator, 435 Posts

15 August 2010 at 8:55pm

Interesting...

Avatar
xini

Community Member, 8 Posts

4 March 2011 at 5:42pm

Has anyone an working example for this?
Very much appreciated...