plugin:newpagetemplate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:newpagetemplate [2020-09-28 15:31] – [newpagetemplate Plugin] turnermm | plugin:newpagetemplate [2024-03-08 09:19] (current) – old revision restored (2024-03-08 09:07) dregad | ||
---|---|---|---|
Line 3: | Line 3: | ||
---- plugin ---- | ---- plugin ---- | ||
description: | description: | ||
- | author | + | author |
- | email : turnermm02@shaw.ca | + | email : dregad@mantisbt.org |
- | type : syntax | + | type : syntax, CLI |
- | lastupdate : 2018-05-22 | + | lastupdate : 2023-10-19 |
- | compatible : lemming,anteater,rincewind,angua,adora belle,weatherwax,binky,hrun,detritus,"Elenor Of Tsort", "Frusterick Manners",Greebo,hogfather | + | compatible : Lemming, Anteater, Rincewind, Angua, Adora belle, |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
tags : editing, template, button, URL, POST | tags : editing, template, button, URL, POST | ||
- | downloadurl: | + | downloadurl: |
sourcerepo : https:// | sourcerepo : https:// | ||
bugtracker : https:// | bugtracker : https:// | ||
- | donationurl: | + | donationurl: |
---- | ---- | ||
===== Description ===== | ===== Description ===== | ||
- | This plugin loads into the edit window a template specified in the '' | + | This plugin loads into the edit window a template specified in the '' |
The [[plugin: | The [[plugin: | ||
Line 27: | Line 28: | ||
If a new page is created with the URL: | If a new page is created with the URL: | ||
- | doku.php? | + | doku.php? |
- | then the '': | + | then the '': |
| | ||
See [[# | See [[# | ||
Line 45: | Line 46: | ||
Howdy! Joe | Howdy! Joe | ||
- | '' | + | '' |
=== How to create a link using wiki syntax=== | === How to create a link using wiki syntax=== | ||
Line 63: | Line 64: | ||
As with the '' | As with the '' | ||
- | ^ @ID@ | full ID of the page | | + | ^ @ID@ | full ID of the page | |
- | ^ @NS@ | namespace of the page | | + | ^ @NS@ | namespace of the page | |
- | ^ @PAGE@ | + | ^ @PAGE@ |
- | ^ @!PAGE@ | + | ^ @!PAGE@ |
- | ^ @!!PAGE@ | + | ^ @!!PAGE@ |
- | ^ @!PAGE!@ | + | ^ @!PAGE!@ |
- | ^ @FILE@ | + | ^ @FILE@ |
- | ^ @!FILE@ | + | ^ @!FILE@ |
- | ^ @!FILE!@ | + | ^ @!FILE!@ |
- | ^ @USER@ | + | ^ @USER@ |
- | ^ @NAME@ | + | ^ @NAME@ |
- | ^ @MAIL@ | + | ^ @MAIL@ |
- | ^ @DATE@ | + | ^ @DATE@ |
- | ^ @DATE@ | + | ^ %a %d-%m-%y etc. | e.g. Thu 06-12-12. [[phpfn>strftime]] placeholders are replaced by page creation time | |
- | | %a %d-%m-%y etc. | e.g. Thu 06-12-12. [[php>Strftime]] placeholders are replaced by page creation time | | + | |
Line 95: | Line 95: | ||
If you wish to use the original version it is available from [[https:// | If you wish to use the original version it is available from [[https:// | ||
+ | ===== Alternate Interfaces ===== | ||
+ | ==== openas ==== | ||
+ | |||
+ | There is an alternate interface in the [[plugin: | ||
+ | |||
+ | === CLI === | ||
+ | |||
+ | There is a module of '' | ||
+ | |||
===== Bugs ===== | ===== Bugs ===== | ||
See https:// | See https:// | ||
+ | ===== Discussion ===== | ||
+ | See [[plugin: | ||
===== Change Log ===== | ===== Change Log ===== | ||
Line 104: | Line 115: | ||
- | ===== Discussion ===== | ||
- | |||
- | > Could anybody provide me a simple description or example for the usage of the plugin in combination with ' | ||
- | > Thanks, Matt | ||
- | >> See the [[plugin: | ||
- | |||
- | ---- | ||
- | |||
- | > When accessing a non-existing page you're provided with a text: | ||
- | > //This topic does not exist yet \\ | ||
- | You've followed a link to a topic that doesn' | ||
- | > It would be nice to add text where the user can choose from different templates, your plugin would then provide the URL to match the name of the page and the user has choice from different templates. Or am I missing something here ? | ||
- | |||
- | >> I have a same question. Can anybody explain me how to use a new page template when adding a page. I am new to PHP and don't know anything. Your help is highly appreciated. | ||
- | >> Thanks, George | ||
- | |||
- | ---- | ||
- | |||
- | This plugin helped me quickly setup template pages for my students to work on, today. | ||
- | < | ||
- | * [[: | ||
- | * [[: | ||
- | * ... | ||
- | </ | ||
- | It would have been even better if I could have created a single link with a substitution in the linked namespace, like: | ||
- | < | ||
- | [[: | ||
- | </ | ||
- | I don't know if it's feasible but it sure would be cool :-) --- [[user> | ||
- | |||
- | > The problem here would be where to get the substitutions from. Somewhere there would have to be a list of names for @NAME@ and some way to identify which name to use for the substitution. | ||
- | |||
- | |||
- | >> I tried to use your conception and for substitutes was used bureaucracy+pagemod plugins. I have noticed some drawback. After creating link on new page it is possible just to open for editing it. For end users it is not suitable to delete this part of code (start? | ||
- | |||
- | >>> | ||
- | [[: | ||
- | </ | ||
- | |||
- | >>>> | ||
- | |||
- | This is a bit late in the day, but you can deal with the above problem using the [[: | ||
- | |||
- | ---- | ||
- | |||
- | How does the interaction with existing namespacetemplates work? | ||
- | > There should be no interaction. | ||
- | |||
- | >> | ||
- | |||
- | ---- | ||
- | |||
- | I am trying to run newpagetemplate together with addnewpage. Not being fluent in php and programming, | ||
- | > See the [[plugin: | ||
- | |||
- | >> I have a wikipage named " | ||
- | |||
- | >>> | ||
- | | ||
- | Then your users will get a text box in which to enter the name of a page which will open in my_namespace. | ||
- | |||
- | >>>> | ||
- | |||
- | >>>>> | ||
- | {{NEWPAGE>: | ||
- | That will link to a page in the root directory. | ||
- | >>>>> | ||
- | >>>>> | ||
- | >>>>>> |
plugin/newpagetemplate.1601299911.txt.gz · Last modified: 2020-09-28 15:31 by turnermm