question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Respect already selected collection when adding new documents or images

See original GitHub issue

Is your proposal related to a problem?

Documents and Images list views allows filtering by Collection. Choosing a collection and clicking on “Add a document” opens a new view, where first (Root) collection is selected. This causes confusion to some users and makes them make mistakes where the document would be uploaded.

Describe the solution you’d like

It would be great if a button to add new documents would transfer currently selected collection id as parameter to multiple add view. This way current user would upload files to already choosen collection, which looks like right thing to do, especially if there are more then few collections.

wagtail-current-collection-in-add-view

Describe alternatives you’ve considered

Did not found any other alternative for this.

Additional context

This should be pretty easy to implement, in few steps:

  1. AddView would accept optional query parameter collection_id and pass it to template, which would select current collection.
  2. document index template already has current_collection, so the only change required here would be to pass it to wagtaildocs:add_multiple url
  3. change in second step would be made in image index template

If there are no objections for this, I can prepare pull request.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
bmihelaccommented, Dec 3, 2021

I’m working on it

0reactions
lb-commented, Nov 23, 2022

Update

@bmihelac - Are you still keen on pursuing this fix you started but with the new approach? https://github.com/wagtail/wagtail/pull/7756

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Append items "photos" to an existing collection
Now I need to get back to my gallery select the next item and repeat the process. I would like that the new...
Read more >
Collections — MongoDB Compass
Open the collection in a new tab. Select a collection. click to enlarge. After you select a collection, Compass shows you that collection's...
Read more >
How to display multiple images selected from gallery in ...
Create an array of UIImage as var imageArray :[UIImage] = () 2. add selected images in imageArray. 3. Save image from imageArray in...
Read more >
Midjourney Documentation: Quick Start Guide
You can also find more detail on the official Midjourney Discord server in the #rules , #faq , #announcements , and #status channels....
Read more >
How to add photos to an existing collection
the Collection shows a small [+] to indicate it is the Target Collection. ScreenShot065.jpg. Now- Select ONE or MANY images in the library...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found