Inspired from the comment form, maybe it could be interesting to have a standard form syntax that allow editors to create page from within a page using some preset.
Here is an example:
<form target="%CREATEPAGE?defaulttags=0&redirect=current%" method="post">
<input type="hidden" name="tag" value="article, new">
<input type="hidden" name="secure" value="2">
<input type="hidden" name="template" value="article_template">
<input type="text" name="title">
<input type="text" name="description">
<textarea name="content"></textarea>
</form>
- If user rank isn't enough (or isn't logged in), inputs will be set to
disabled.
- Using the global default tag setting can be overridden.
- Redirection could be set to
current, pageedit, pageread or currentrender.
- If no
id input exist, it will be created from title input.
- If no
title is set either, the form is invalid.
Remarks
What about incrementing ID numbers ? Or about ID prefix ? Or randomly generated ID ?
Inspired from the comment form, maybe it could be interesting to have a standard form syntax that allow editors to create page from within a page using some preset.
Here is an example:
disabled.current,pageedit,pagereadorcurrentrender.idinput exist, it will be created fromtitleinput.titleis set either, the form is invalid.Remarks
What about incrementing ID numbers ? Or about ID prefix ? Or randomly generated ID ?