Sure.
My Sitestructure: (Like this, with ca 100 pages and 15 levels, template t2 only on last level)
Treeroot template=render_tree
-- Treenode 1 template=t1
----- Treenode 2 template=t1
----------- Treenode 3 template=t1
-- Treenode 4 template=t1
------ Treenode 5 template=t1
----------- Treenode 6 template=t1
------------ Treenode 7 template=t1
----------------- Treenode 8 template=t2
-- Treenode 9 template=t1
------ Treenode 10 template=t1
------ Treenode 11 template=t1
------------ Treenode 12 template=t1
----------------- Treenode 13 template=t1
---------------------- Treenode 14 template=t2
----------------------- Treenode 15 template=t2
if ($parent) { //If parent set via GET Variable then output only its children
$items= $pages->find("hasParent=$parent, template=t1||t2, limit=1000");
$items->prepend($pages->get($parent));
}else{ //Output all Nodes
$items= $pages->find("template=t1||t2, limit=1000");
};
foreach($items as $item){
echo "[{'$item->id', '$item->parent','$item->title' }],";
}
What I want is not only to specify which parent the pages can have: eg all Childs of treenode 11.
I also want to limit the level. Eg Display Treenode11 and two levels. (node 12 and 13 are in the page array, node 14 and 15 arent because they are more than 2 levels away)