Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | 11-Apr-2025 | - | ||||
action/ | H | 03-May-2018 | - | 86 | 57 | |
conf/ | H | 03-May-2018 | - | 13 | 7 | |
images/ | H | 03-May-2018 | - | |||
js/ | H | 03-May-2018 | - | 30 | 14 | |
lang/ | H | 03-May-2018 | - | 343 | 160 | |
tpl/ | H | 03-May-2018 | - | 410 | 339 | |
README.mdown | H A D | 04-Nov-2015 | 2.2 KiB | 64 | 47 | |
helper.php | H A D | 04-Nov-2015 | 2.9 KiB | 106 | 70 | |
plugin.info.txt | H A D | 04-Nov-2015 | 211 | 8 | 7 | |
style.css | H A D | 04-Nov-2015 | 2.1 KiB | 118 | 111 |
README.mdown
1New Page Dialog Plugin 2====================== 3 4A DokuWiki plugin which helps people to create new pages. 5 6It focuses on the way people are used to storing files and aims to resemble 7a regular "Save As" dialog with "Add Folder" functionality. 8 9All documentation for this plugin can be found at 10http://www.dokuwiki.org/plugin:npd. 11 12If you install this plugin manually, make sure it is installed in 13`lib/plugins/npd/` - if the folder is called different it 14will not work! 15 16Please refer to http://www.dokuwiki.org/plugins for additional info 17on how to install plugins in DokuWiki. 18 19This plugin is adopted from the original New Page Dialog plugin by Pierre Spring at 20https://www.dokuwiki.org/plugin:new_page_dialog. 21 22Add Button to Template 23---------------------- 24 25This plugin requires the modification of the template (Often `main.php`). Decide where 26you want to insert the *Create New Page* button in your template and insert the following code: 27 28```php 29if (!plugin_isdisabled('npd') && ($npd =& plugin_load('helper', 'npd'))) { 30 $npd->html_new_page_button(); 31} 32``` 33 34Most likely you want to do that in the `/lib/tpl/default/main.php` inside the `<div id="bar__bottomright"/>` as follows: 35 36```html 37<div class="bar-right" id="bar__bottomright"> 38 <?php if (!plugin_isdisabled('npd') && ($npd =& plugin_load('helper', 'npd'))) $npd->html_new_page_button(); ?> 39 <?php tpl_button('subscription')?> 40 <?php tpl_button('admin')?> 41 <?php tpl_button('profile')?> 42 <?php tpl_button('login')?> 43 <?php tpl_button('index')?> 44 <?php tpl_button('top')?> 45</div> 46``` 47 48Note that the button will only be shown if the browser is JavaScript enabled. 49 50Exception: The template DokuBook has New Page Dialog already implemented. (Configure to type `link`.) 51 52---- 53Copyright (C) 2014 christian studer <christian.studer@meteotest.ch> 54 55This program is free software; you can redistribute it and/or modify 56it under the terms of the GNU General Public License as published by 57the Free Software Foundation; version 2 of the License 58 59This program is distributed in the hope that it will be useful, 60but WITHOUT ANY WARRANTY; without even the implied warranty of 61MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 62GNU General Public License for more details. 63 64See the COPYING file in your DokuWiki folder for details