NewPageBox


This page tests an experimental (:newpagebox:) markup. There are several forms available.

Now available at Cookbook.NewPageBox. --Pm

The first form is the simplest -- it provides a text box into which an author can enter the name of a new page to be created. By default the new page is created in the same group as the current page, but an author can also include a group name in the name of the new page.

(:newpagebox:)

⚠ (:newpagebox:)

(:newpagebox:) allows a base= parameter to specify that the name of the new page should be relative to some page other than the current one (e.g., to have pages created within another group). The following example will create new pages in the Test2 group:

(:newpagebox base=Test2.HomePage:)

⚠ (:newpagebox base=Test2.HomePage:)

Finally, an author can provide a template= parameter to specify another page that should be used as a template if creating a new page. For example, the directive below will start a new page using the contents of Main.WikiSandbox as the page template. (The template= option has no effect on existing pages.)

(:newpagebox template=Main.WikiSandbox:)

⚠ (:newpagebox template=Main.WikiSandbox:)


Request: could you set up and option template=self (or similar word), which would use the current page as the template?

Another Request: how about adding a "default" option? The default could be set to a static value, or some other definable value. Like this:

(:newpagebox template=Main.WikiSandbox base=test2.home default=foobar:)

⚠ (:newpagebox template=Main.WikiSandbox base=test2.home default=foobar:)

Or, with a bit more work -- allow some variables:

(:newpagebox template=Main.WikiSandbox base=test2.home default=$Date$Time:)

⚠ (:newpagebox template=Main.WikiSandbox base=test2.home default=$Date$Time:)

Where $Date and $Time would be the server date / time.


Will this feature become available in the downloaded version? I've inserted the (:newpagebox:) markup in beta38, however the result is only to see the text as entered, and not the button and data entry box. 19 Jun 2005.


See also
Cookbook.NewPageForm
Cookbook.AddPageForm

Category
Forms, Links
 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.21 00.21 MarkupToHTML end
 5: 00.21 00.21 MarkupToHTML begin
 6: 00.21 00.21 MarkupToHTML end
 7: 00.21 00.21 MarkupToHTML begin
 8: 00.21 00.21 MarkupToHTML end
 9: 00.21 00.21 MarkupToHTML begin
10: 00.22 00.21 MarkupToHTML end
11: 00.22 00.21 MarkupToHTML begin
12: 00.22 00.21 MarkupToHTML end
13: 00.23 00.22 MarkupToHTML end
14: 00.23 00.22 MarkupToHTML begin
15: 00.24 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
16: 00.24 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls end
17: 00.25 00.24 MarkupToHTML end
18: 00.25 00.24 MarkupToHTML begin
19: 00.25 00.24 MarkupToHTML end
20: 00.26 00.25 now
Peak memory: 3,741,368 bytes