-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gallery field #174
Gallery field #174
Conversation
I would welcome such a thing. It's on my long horizon, just over the 100% test coverage hill. |
@netaustin Before I proceed too much further here, I'd love to get your input. UX looks a bit like this (ignore the Media Explorer buttons that are being added): A I need gallery management for a couple of clients within two or three weeks, so I'm hoping we can turn this around pretty quick. |
This would actually solve a use case for me on a couple sites we've worked on. We've just had them use the standard gallery function via the media modal and generate a shortcode because as you said the repeating media field UX isn't efficient. However this locks down the functionality so an editor could only use the field for this purpose which is great. I like this. |
Proceed apace, yeah. The underlying media field was built for the earlier version of the media modal, which was a serious pain to work with, and then mildly refactored when the media browser changed. Probably needs a more serious cleaning. |
I really dig this idea. Where are you at with it @danielbachhuber? Need any assistance? |
60% done. Just need time to finish it up. What sort of test coverage are you looking for? |
We don't have testing for JS (#10), so just the php functionality. Ensure that the field renders properly when setting |
…to media-collection-174 Conflicts: js/media/fieldmanager-media.js php/class-fieldmanager-media.php
…to media-collection-174-2 Conflicts: js/media/fieldmanager-media.js php/class-fieldmanager-media.php
Conflicts: js/media/fieldmanager-media.js php/class-fieldmanager-media.php
…anager into media-collection-174-2
…anager into media-collection-174-mods Conflicts: css/fieldmanager.css
Media collection 174 2
…rdpress-fieldmanager into media-collection-174-mods
Media collection 174 mods
'type': 'image', | ||
'post__in': selectedImages, | ||
'orderby': 'post__in', | ||
'perPage': -1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how VIP is going to feel about this. Might need to add some transparent pagination.
@mattheu Couple of things still:
@mboynes @netaustin still interested in this PR, or should we internalize first? what's the backlog like getting something onto VIP? |
Currently you can switch from Also If you click a collection to edit - it does already open the edit gallery experience... |
Hmm. Maybe I didn't pull latest. I'll test again today |
My bad on testing — the issues are non-issues. Because we need this now, we've moved it to a separate repo: https://github.com/fusioneng/fieldmanager-gallery Happy to pick things up again when there's some direction from the maintainers on where we'd like this to go. |
@danielbachhuber I'd love to finally merge https://github.com/fusioneng/fieldmanager-gallery into FM. Your thoughts? I'm inclined to keep it a separate field rather than add onto Fieldmanager_Media as you did initially. One potential issue is naming -- we don't want to break any sites where your plugin is installed. |
I'm open to it.
Seems reasonable.
I suspect this is a half dozen or less. We haven't really given it much promotion, and we only have one site. My bad not changing the name in the first place. |
I just sent a new PR with an updated Fieldmanager gallery version (with unit tests) in order to finally close this thread ;-) |
Closing in favor of #506 |
I think we might've discussed this before, but I don't see an existing thread for it.
How would you feel about a gallery field that used the Media Library to pick a selection of images? Using a repeating / sortable media field is a bit janky UX.