From 60f3dfe08f5faa441655f50be7c84e04fdf3fe63 Mon Sep 17 00:00:00 2001 From: vv221 Date: Fri, 3 Apr 2020 02:08:40 +0200 Subject: [PATCH] Move list of namespaces used for children pages to a configurable array --- action.php | 2 +- conf/default.php | 3 +++ conf/metadata.php | 3 +++ lang/en/settings.php | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 conf/default.php create mode 100644 conf/metadata.php create mode 100644 lang/en/settings.php diff --git a/action.php b/action.php index c4060bb..2f2705e 100644 --- a/action.php +++ b/action.php @@ -46,7 +46,7 @@ class action_plugin_childrenpages extends DokuWiki_Action_Plugin { return; } // Get the list of children pages - $children_types = [ 'animation', 'gameplay', 'dev', 'talk' ]; + $children_types = $this->getConf('children_list'); foreach ( $children_types as $child_type ) { $child_label = $this->getLang("btn_$child_type"); $this->addMenuItem($event, $child_type, $child_label); diff --git a/conf/default.php b/conf/default.php new file mode 100644 index 0000000..1b8843b --- /dev/null +++ b/conf/default.php @@ -0,0 +1,3 @@ +