diff --git a/admin/editor.php b/admin/editor.php --- a/admin/editor.php +++ b/admin/editor.php @@ -1,85 +1,86 @@ */ // must be run within Dokuwiki if (!defined('DOKU_INC')) die(); require_once(DOKU_PLUGIN.'admin.php'); class admin_plugin_metaeditor_editor extends DokuWiki_Admin_Plugin { /** * Constructor. Load helper plugin */ function admin_plugin_metaeditor_editor(){ } function getMenuSort() { return 501; } function forAdminOnly() { return true; } function getMenuText($language) { return "Simple Meta Data Editor"; } function handle() { if(!is_array($_REQUEST['d']) || !checkSecurityToken()) return; } function recurseTree($ns) { global $conf; $out = ''; $list = array(); $opts = array( 'depth' => 1, 'listfiles' => true, 'listdirs' => true, 'pagesonly' => true, 'firsthead' => true, 'sneakyacl' => $conf['sneaky_index'], ); search($list,$conf['datadir'],'search_universal',$opts,$ns); foreach($list as $item) { if($item['type'] == 'f' || $item['type'] == 'd') { if($item['type'] == 'd') { $out .= '
  • '.$item['id']; $out .= ''; } else { $out .= '
  • '.$item['id']; } $out .= '
  • '; } } return $out; } function html() { echo '

    Meta Data Editor

    '; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; + echo '
    PageMeta DataValue
    '; echo '
      '.$this->recurseTree('/').'
    '; echo '

    '; echo '
    '; echo ''; echo '
    '; } } // vim:ts=4:sw=4:et:enc=utf-8: diff --git a/plugin.info.txt b/plugin.info.txt --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base metaeditor author Andreas Boehler email dev@aboehler.at -date 2015-04-29 +date 2015-07-15 name Meta Data Editor desc Edit metadata of pages url http://www.dokuwiki.org/plugin:metaeditor