• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..Today-

action/H03-May-2018-8657

conf/H03-May-2018-137

images/H03-May-2018-

js/H03-May-2018-3014

lang/H03-May-2018-343160

tpl/H03-May-2018-410339

README.mdownH A D04-Nov-20152.2 KiB6447

helper.phpH A D04-Nov-20152.9 KiB10670

plugin.info.txtH A D04-Nov-2015211 87

style.cssH A D04-Nov-20152.1 KiB118111

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')?>&nbsp;
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