DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:addnewpage

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:addnewpage [2023-09-25 01:11] – [Configuration and Settings] autopage dregadplugin:addnewpage [2024-02-15 21:47] (current) Aleksandr
Line 7: Line 7:
 type       : syntax type       : syntax
 lastupdate : 2023-05-10 lastupdate : 2023-05-10
-compatible : Jack Jackrum+IgorHogfatherGreeboFrusterick Manners, Elenor of Tsort, DetritusHrunPonder StibbonsAdora BelleAnguaRincewind+compatible : RincewindAnguaAdora BellePonder StibbonsHrun, Detritus, Elenor of Tsort, Frusterick MannersGreeboHogfatherIgorJack JackrumKaos
 depends    :  depends    : 
 conflicts  conflicts 
 similar    : new_page_dialog, npd, catlist similar    : new_page_dialog, npd, catlist
 tags       : button, form, create tags       : button, form, create
-screenshot_img: :plugin:addnewpage_ns_nothidden.png+
 downloadurl: https://github.com/dregad/dokuwiki-plugin-addnewpage/zipball/master downloadurl: https://github.com/dregad/dokuwiki-plugin-addnewpage/zipball/master
 bugtracker : https://github.com/dregad/dokuwiki-plugin-addnewpage/issues bugtracker : https://github.com/dregad/dokuwiki-plugin-addnewpage/issues
 sourcerepo : https://github.com/dregad/dokuwiki-plugin-addnewpage sourcerepo : https://github.com/dregad/dokuwiki-plugin-addnewpage
 +donationurl: https://github.com/sponsors/dregad
 +
 +screenshot_img: :plugin:addnewpage_ns_nothidden.png
 ---- ----
  
Line 26: Line 29:
 This plugin allows you to add new-page forms to wiki pages, so that users can simply enter the title of a new page and go straight to the editing form (rather than first creating a link to the page, or typing the URL directly). This plugin allows you to add new-page forms to wiki pages, so that users can simply enter the title of a new page and go straight to the editing form (rather than first creating a link to the page, or typing the URL directly).
  
-The target namespace for the new page can either be selected from a drop-down list in the new-page form, or specified in the form [[#syntax|syntax]]. Only namespaces to which the user is permitted to write are shown.+The target namespace for the new page can either be selected from a drop-down list in the new-page form, or specified in the form [[#syntax]]. Only namespaces to which the user is permitted to write are shown.
  
 The plugin can pair with the [[plugin:newpagetemplate|newpagetemplate Plugin]] to start with a predefined template instead of an empty page. The plugin can pair with the [[plugin:newpagetemplate|newpagetemplate Plugin]] to start with a predefined template instead of an empty page.
Line 77: Line 80:
   {{NEWPAGE>reports:%Y:week_%W}}   {{NEWPAGE>reports:%Y:week_%W}}
  
-When used together with the //autopage// option which hides the input field, a daily page can be created with a single button click: +When used together with the [[#configuration_and_settings|autopage]] option to hide the input field, a daily page can be created with a single button click: 
  
   {{NEWPAGE>journal:%Y-%m-%d?autopage}}   {{NEWPAGE>journal:%Y-%m-%d?autopage}}
  
 +==== Configuration overrides ====
 +
 +It is possible to override the plugin's [[#configuration_and_settings|configuration]] for a single usage of the syntax, by specifying a ''?'' followed by the config's name with an optional ''no'' prefix to negate it. Values for non-boolean configs can be provided with ''='', separated by '';''. Multiple overrides can be given, separated by '','' or ''&''
 +
 +General syntax:
 +
 +  ?[no]<option_1>[=value_1[;value_2]...][,[no]<option_2>]...
 +
 +Examples:
 +
 +  * overwrite the default hide setting <code>
 +{{NEWPAGE>namespace?nohide}}
 +</code>
 +  * custom namespace exclusion and hide root <code>
 +{{NEWPAGE>namespace?exclude=project;reports&noshowroot}}
 +</code>
  
 ==== New-page templates ==== ==== New-page templates ====
Line 120: Line 139:
  
 =====FAQ===== =====FAQ=====
 +
 +=== Why is a privileged user not allowed to add pages? ===
 +
 +Logged in as administrator, why do I get a //You are not allowed to add pages// error message ?
 +
 +> This is a [[https://github.com/dregad/dokuwiki-plugin-addnewpage/issues/38|known problem]], caused by caching. As a workaround, add ''%%~~NOCACHE~~%%'' to the page that contains the form.
 +
  
 === Addnewpage form on the admin page? === === Addnewpage form on the admin page? ===
plugin/addnewpage.1695597104.txt.gz · Last modified: 2023-09-25 01:11 by dregad

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