[Feature]: select option for grouping formats
Before suggesting
- [x] I searched the existing issues and did not find a similar request.
What problem would this solve?
By default the an item with several formats are automatically grouped so only one is visible. I own a collection of coffee mugs some of them consist of an espresso cup and a macchiato mug.
Since the are grouped together, only ones shows up in the collection page with the colered badge. A slection option in the configuration page would solve this.
How could it work?
No response
Alternatives you considered
No response
Would you like to help build it?
None
Hello! Thank you for the feedback. I love this collection idea! Yeah I totally get it. I'll keep that in mind for the next update :)
Hello again! I looked at the code to understand what happens on your side.
DVinyl never groups items on the collection page (one item = one card). What happens is a merge when you add an item: if the new one matches an existing one, DVinyl just increments the quantity instead of creating a second entry. The match uses title + creator + format, so espresso and macchiato should normally stay separate... unless your item type has no format declared. In that case it merges, and that's a bug on my side, not something you should have to configure :)
Two questions:
- did you declare formats (espresso, macchiato...) in
/create-plugin, or did you use a custom field? - do you want two separate cards, or one single card carrying both formats at the same time (like a set)?
A screenshot of your collection page would help a lot. Thank you!
Hi,
When I reported the error I did not use the format field. In the plugin I created yesterday, (see screenshot) I used format and there it seems to work. I wondered why it seemed to work correct this time around but did not have the time to test this properly. So if I read correctly this should solve my problem in this case.
For other collections I would say separate cards Even better would be to make it configurable (to make the software as universal as possible).
Perfect, that confirms it! Your new plugin declares formats, so each format gets its own card (I can see Amsterdam three times in your screenshot, nice collection by the way). Without a format field, DVinyl only matches on title + creator, and that's why your first mugs were merged.
I agree with you, it should be configurable. I'm going to add a switch in the collection settings to disable the merge completely, so a new entry is always created even if the title and the creator are the same. The "already in collection" warning will still show up, it just won't merge anymore :D
I'll try to ship it in the next update. Thanks a lot for the details and the screenshot!
Great!
Hi again and again.. xD There's now a per-collection toggle in the settings to stop merging duplicate adds into a single entry, so your espresso cup and your macchiato mug stay two separate items with their own badge.
Feel free to reopen the issue if you run into any problems!