Page MenuHomePhabricator

Change how page title is defined in FormWizard
Closed, ResolvedPublic

Description

Right now, the target page is defined as the fourth parameter in the parser function call. This does not allow custom page destinations to be defined. I propose that this information be moved to the form configuration page.

Subpage Mode

This would create a text box above the button allowing a custom subpage name to be defined.

{
    "steps": { ... },
    "target": {
        "mode": "subpage",
        "rootname": "DestinationPage/"
    }
}
`

Same-Page (Append) Mode

This would not allow a custom subpage to be made.

{
    "steps": { ... },
    "target": {
        "mode": "append",
        "pagename": "DestinationPage"
    }
}
`

With this, we could drop the fourth ParserFunction parameter. I also propose dropping the fifth one since I'm not sure it actually does anything.

Event Timeline

Change 463605 had a related patch set uploaded (by Eugene233; owner: Eugene233):
[mediawiki/extensions/FormWizard@master] Change how page title is defined in FormWizard

https://gerrit.wikimedia.org/r/463605

Change 463606 had a related patch set uploaded (by Eugene233; owner: Eugene233):
[mediawiki/extensions/FormWizard@master] Change how page title is defined in FormWizard

https://gerrit.wikimedia.org/r/463606

Change 463605 abandoned by Eugene233:
Change how page title is defined in FormWizard

Reason:
Changes Overwritten.

https://gerrit.wikimedia.org/r/463605

Change 463606 abandoned by Eugene233:
Change how page title is defined in FormWizard

Reason:
Will be rebased.

https://gerrit.wikimedia.org/r/463606

Change 463613 had a related patch set uploaded (by Eugene233; owner: Eugene233):
[mediawiki/extensions/FormWizard@master] Change how page title is defined in FormWizard

https://gerrit.wikimedia.org/r/463613

Change 463613 merged by Eugene233:
[mediawiki/extensions/FormWizard@master] Change how page title is defined in FormWizard

https://gerrit.wikimedia.org/r/463613

Closing as resolved.