NewPage Module
nav_first.pngFirst: thread:131
HTML Block
Edited: 11 Oct 2012 12:06 by: GoVegan
Comments: 0
nav_prev.pngPrevious: thread:275
InfoBox button
Edited: 04 Feb 2010 07:50 by: leiger
Comments: 0
Last: thread:112
Image Module
Edited: 12 Nov 2009 12:22 by: pieterh
Comments: 0
Next: thread:130
Private Categories
Edited: 15 Jan 2010 01:28 by: leiger
Comments: 3

Steven HeynderickxSteven Heynderickx wrote on 10 Nov 2009 15:31

Originally suggested by pieterhpieterh on 6 September 2009.

The NewPage module makes it possible to create a page semi-automatically. This is a design sketch for an improved version of the module.

Current syntax

  • Specify category for new page: category="category-name"
  • Specify tags for new page: tags="list of tags"
  • Specify parent for new page: parent="parent-fullname"
  • Text to use on button: button="text string"
  • Validation expression: format="regular expression"
  • Static page template: template="list of page names""

Current page parent option

  • Make the current page be the parent: parent="."

Added automation

  • Automate new page creation: auto="automation"
    • "no": takes you to editor where you can save or cancel
    • "semi": saves page as specified then shows created page
    • "full": saves page as specified then reloads current page
  • For normal pages, default is "no".
  • For pages with a form template, default is "full".
  • Automate title formatting: title="format"
    • %s inserts text provided by user
    • E.g. title="Summary for %s region"

Added visualization

  • Horizontal alignment: align="alignment"
    • "left": left aligned (default)
    • "center": center-aligned
    • "right": right-aligned
  • Visible width: width="pixels, ems, or percentage"
  • Visible width in characters: size="count"
  • Button position: layout="layout-style"
    • "flat": button to right of input field
    • "column": button below input field, aligned left/center/right
  • Show a link, not an input field
    • User will enter page title after clicking, not before
    • text = "link text"

Multiple buttons

These let the user create page with different metadata from the same NewPage module.

  • Additional buttons: [[button]] inside module body
    • tags="tags to set"
    • parent="parent for page"
    • title="title format"
  • If used, then default button is not shown
  • Parent, tag and title settings in module act as defaults

Allow existing pages

This allows for create-or-goto scenarios - if the page already exists, the user goes there. We call this a "relaxed" NewPage:

  • relaxed="true" - do not complain if page already exists, but just show it


[[module NewPage parent="." size="40"]]
[[button text="Bug" tags="open _bug" ]]
[[button text="Wish" tags="open _wish" ]]

Start a new sub-thread

Autonumbering By GoVegan 2 Comments 31 Jan 2010 10:19
Multiple button not working for me. (closed) By HobStarCS 2 Comments 18 Jan 2010 06:01

We discourage direct comments on this thread: to discuss it, please start a sub-thread.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License