8 - NewPage Module
nav_first.pngFirst: design:1
1 - Rate Module
Edited: 29 Apr 2012 00:01 by: GoVegan
Comments: 21
Tags:
nav_prev.pngPrevious: design:7
7 - Wikidot Feeds
Edited: 11 Nov 2009 11:48 by: Steven Heynderickx
Comments: 2
Tags:
Last: design:32
32 - Parenthood Module
Edited: 11 Nov 2009 21:47 by: Steven Heynderickx
Comments: 7
Tags:
nav_last.png
Next: design:9
9 - CSS module for per-page styling
Edited: 11 Nov 2009 11:51 by: Steven Heynderickx
Comments: 13
Tags:
nav_next.png

8 - NewPage Module
Created on 06 Sep 2009 13:26
By pieterh

rating: +4+x
This is the Redirect module that redirects the browser directly to the "http://projects.wikidot.com/thread:110" page.

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 parent of current page: 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

Example

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

Comments: 17

Add a New Comment