aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/pagesTree.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/pagesTree.php')
-rw-r--r--mod/pages/pagesTree.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/pages/pagesTree.php b/mod/pages/pagesTree.php
new file mode 100644
index 000000000..b44640d7a
--- /dev/null
+++ b/mod/pages/pagesTree.php
@@ -0,0 +1,14 @@
+<?php
+ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+
+ if (is_callable('group_gatekeeper')) group_gatekeeper();
+
+ $page = (int) get_input('root',get_input('source'));
+
+ if (!$page = get_entity($page)) {
+ exit;
+ }
+
+ // View tree
+ echo pages_get_entity_sidebar($page, $fulltree);
+?> \ No newline at end of file