Skip to content

a form to create new pages #633

Description

@vincent-peugnet

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 ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions