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 [2011-04-04 20:03] – Restructuring lupo49plugin: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
 type       : action type       : action
-lastupdate : 2008-07-11+lastupdate : 2011-04-04
 compatible : 2008-05-05 compatible : 2008-05-05
 depends    :  depends    : 
 conflicts  conflicts 
-similar    : addnewpage, newpagebutton +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 32: Line 36:
    
 ==== Add Button to Template ==== ==== Add Button to Template ====
-Decide where you want to insert the "Create New Page" button in your template and insert the 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 71: Line 75:
 ===== Demo ===== ===== Demo =====
  
-A demo of this plugin can be seen at the [[http://fckw.demo.liip.ch/|fckw plugin demo wiki]].+A demo of this plugin can be seen at the [[http://fckw.demo.liip.ch/|fckw plugin demo wiki]]. FIXME
  
  
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 :-(
   * 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 184: 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.1301940234.txt.gz · Last modified: 2011-04-04 20:03 by lupo49

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