silverstripe-framework/tests/model/HierarchyTest.yml
Ingo Schommer 01f46d039f NEW Enforce max node counts to avoid excessive resource usage
Rendering potentially 1000s of nodes can exceed the CPU and memory constraints
of a normal PHP process, as well as the rendering capabilities of browsers.
Set a hard maximum for the renderable nodes, deferring to a "show as list" action
in the main CMS tree. For TreeDropdownField, we don't have the list fallback option,
so ask the user to search for the node title instead.

Also makes both the "node_threshold_total" and "node_threshold_leaf" values configurable
2013-04-09 10:24:18 +12:00

34 lines
765 B
YAML

HierarchyTest_Object:
obj1:
Title: Obj 1
obj2:
Title: Obj 2
obj3:
Title: Obj 3
obj2a:
Parent: =>HierarchyTest_Object.obj2
Title: Obj 2a
obj2b:
Parent: =>HierarchyTest_Object.obj2
Title: Obj 2b
obj3a:
Parent: =>HierarchyTest_Object.obj3
Title: Obj 3a
obj3b:
Parent: =>HierarchyTest_Object.obj3
Title: Obj 3b
obj3c:
Parent: =>HierarchyTest_Object.obj3
Title: Obj 3c
obj2aa:
Parent: =>HierarchyTest_Object.obj2a
Title: Obj 2aa
obj2ab:
Parent: =>HierarchyTest_Object.obj2a
Title: Obj 2ab
obj3aa:
Parent: =>HierarchyTest_Object.obj3a
Title: Obj 3aa
obj3ab:
Parent: =>HierarchyTest_Object.obj3a
Title: Obj 3ab