DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:new_page_dialog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:new_page_dialog [2012-07-17 23:39] 2.13.148.110plugin:new_page_dialog [2023-09-01 16:23] (current) Klap-in
Line 1: Line 1:
-====== new page dialog plugin ======+====== new page dialog Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: Yet another "New Page Dialog", with focus on the way people are used to store files. It aims to resemble a regular "Save Asdialog with "Add Folderfunctionality.+description: Yet another New Page Dialog, with focus on the way people are used to store files. It aims to resemble a regular Save As” dialog with Add Folder” functionality.
 author     : Pierre Spring author     : Pierre Spring
 email      : pierre.spring@liip.ch email      : pierre.spring@liip.ch
Line 10: Line 10:
 depends    :  depends    : 
 conflicts  conflicts 
-similar    : addnewpage +similar    : addnewpage, npd 
-tags       : button, form, create+tags       : button, form, create, !obsolete
  
-downloadurl: http://github.com/caillou/dokuwiki-plugin-npd/tarball/master +downloadurl: https://github.com/caillou/dokuwiki-plugin-npd/tarball/master 
-sourcerepo: https://github.com/caillou/dokuwiki-plugin-npd +sourcerepo : https://github.com/caillou/dokuwiki-plugin-npd 
-bugtracker: https://github.com/caillou/dokuwiki-plugin-npd/issues+bugtracker : https://github.com/caillou/dokuwiki-plugin-npd/issues 
 + 
 +securityissue: XSS vulnerability, not escaped properly.
 ---- ----
 +
 +**:!: Deprecated :!:** - For usage with current versions of DokuWiki, please use the new [[plugin:npd|New Page Dialog Plugin]], an adopted and forked version of this plugin.
  
 ===== Installation ===== ===== Installation =====
Line 34: Line 38:
 Decide where you want to insert the "Create New Page" button in your template and insert the following code: Decide where you want to insert the "Create New Page" button in your template and insert the following code:
 <code php> <code php>
-if (!plugin_isdisabled('npd') && ($npd =plugin_load('helper', 'npd'))) { +if (!plugin_isdisabled('npd') && ($npd = plugin_load('helper', 'npd'))) { 
     $npd->html_new_page_button();     $npd->html_new_page_button();
 } }
Line 43: Line 47:
 <code html> <code html>
 <div class="bar-right" id="bar__bottomright"> <div class="bar-right" id="bar__bottomright">
-  <?php if (!plugin_isdisabled('npd') && ($npd =plugin_load('helper', 'npd'))) $npd->html_new_page_button(); ?>+  <?php if (!plugin_isdisabled('npd') && ($npd = plugin_load('helper', 'npd'))) $npd->html_new_page_button(); ?>
   <?php tpl_button('subscription')?>   <?php tpl_button('subscription')?>
   <?php tpl_button('admin')?>   <?php tpl_button('admin')?>
Line 95: Line 99:
     * I've to the same problem in my DokuWiki and was unable to find a solution yet.     * I've to the same problem in my DokuWiki and was unable to find a solution yet.
     * me too here     * me too here
-    * [2012] me too, without the indexmenu plugin :-(+    * [2012] me too :-(
   * It seems this plugin is not compatible with the indexmenu plugin as it attaches events to the standard index menu tree of DokuWiki and not the indexmenu tree. If there could be any chance to disable the indexmenu plugin in the 'new page' window shown by npd then the problem would be solved, using the standard index tree for the 'new page' window and the indexmenu tree for the rest of the wiki.   * It seems this plugin is not compatible with the indexmenu plugin as it attaches events to the standard index menu tree of DokuWiki and not the indexmenu tree. If there could be any chance to disable the indexmenu plugin in the 'new page' window shown by npd then the problem would be solved, using the standard index tree for the 'new page' window and the indexmenu tree for the rest of the wiki.
     * The issue happens only when the [[.:indexmenu#replace index]] indexmenu option is enabled. A workaround patch is available in the [[.:indexmenu:discussion#incompatibility with npd plugin]] discussion.  --- //[[samuele@samuele.netsons.org|Samuele Tognini]] 2009/05/08 16:42//     * The issue happens only when the [[.:indexmenu#replace index]] indexmenu option is enabled. A workaround patch is available in the [[.:indexmenu:discussion#incompatibility with npd plugin]] discussion.  --- //[[samuele@samuele.netsons.org|Samuele Tognini]] 2009/05/08 16:42//
Line 185: Line 189:
         if( $INFO['exists'] === true ) tpl_button('edit') ;         if( $INFO['exists'] === true ) tpl_button('edit') ;
                 
-        if (!plugin_isdisabled('npd') && ($npd =plugin_load('helper', 'npd'))) { +        if (!plugin_isdisabled('npd') && ($npd = plugin_load('helper', 'npd'))) { 
     $npd->html_new_page_button();     $npd->html_new_page_button();
  }  }
plugin/new_page_dialog.1342561144.txt.gz · Last modified: 2012-07-17 23:39 by 2.13.148.110

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki