The button configuration should be supplemented with the option to set the two buttons' href attribute dynamically. The home button needs an option to take users back to the page they came from, while the begin button should leave out the object reference when restarting the Upload Wizard.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
[UploadWizard] Introducing the usage of an object reference | mediawiki/extensions/UploadWizard | master | +121 -1 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T103701 [WLM] Epic: Possibility for direct image upload for (German) WLM via monument lists in Wikipedia with a predefined category | |||
Resolved | kai.nissen | T105281 [WLM] Make UW button targets dynamically set |
Event Timeline
Change 227984 had a related patch set uploaded (by Kai Nissen (WMDE)):
[UploadWizard] Introducing the usage of an object reference
Due to changes regarding UX, the current code needs to be changed.
The checkbox to choose which image should be placed in the referring list is always present. In case an image already exists the checkbox will be disabled and a notice will additionally be displayed (e. g. The list already contains an image). To keep the behaviour of the useObjref keyword for the home button configuration, the object reference still needs to be passed.
- Additional parameter updateList set to any value for image requests.
- The parameter updateList will be dropped when using the keyword dropObjref in the button configuration to achieve the desired behaviour when restarting the upload process.
Hi @MarkTraceur (same as T105283) could you have a look at the patch above? That would be really great as we are working on a deadline for the WLM. Thanks a lot in advance!
Hi @kaldari , could you have a look at the patch above? That would be great, thanks a lot in advance!
Change 227984 merged by jenkins-bot:
[UploadWizard] Introducing the usage of an object reference
I'm not sure what the home button is being talked about here (do we really expect users to press the home button on their keywords to discover some feature?). If this can be used to redirect users to a certain URL after they're done uploading, great: WMIT is very interested in using such a feature immediately, examples appreciated.
(Please remember to set at least one component for the relevant code.)
Descriptions for the newly added features have been added to the general documentation and the campaign documentation in particular. Poke me, if you have further questions about this.
No, it's the clickable button at the end of the upload process:
If this can be used to redirect users to a certain URL after they're done uploading, great: WMIT is very interested in using such a feature immediately, examples appreciated.
For T48242? Not sure, since setting the 'objref' URL parameter (which this patch added) also results in the same value being added to the file page, in a HTML comment. This is probably undesirable in most cases.