Skip to content
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

UI: Hierarchical taxonomies as checkboxes in attachment modal #3767

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

JoryHogeveen
Copy link
Member

@JoryHogeveen JoryHogeveen commented Sep 5, 2016

See: #3765

TODO:

  • UI
  • Saving method
  • Maybe make this a Pods option since it's not WP core?

@sc0ttkclark Currently the PR is not ready, it's dependent on wether the attachment post type has any fields because otherwise nothing gets loaded. Please let me know if you think this should be a Pods feature. If yes I'll continue with this in Pods.

@JoryHogeveen JoryHogeveen added Type: Enhancement Enhancements to features that already exist, but are not major additions Component: UI Issues related to user experience and interfaces labels Sep 5, 2016
@JoryHogeveen JoryHogeveen added this to the Pods 2.6.8 milestone Sep 5, 2016
@sc0ttkclark sc0ttkclark added the Status: In Progress Issue or PR is currently in progress but not yet done label Sep 5, 2016
@JoryHogeveen JoryHogeveen added the Status: Need Dev Feedback Waiting on feedback from developer of PR label Sep 6, 2016
@sc0ttkclark
Copy link
Member

This looks cool, I'm open to it being included. What's left?

@sc0ttkclark sc0ttkclark modified the milestones: Pods Future Release, Pods 2.6.8 Dec 8, 2016
@JoryHogeveen
Copy link
Member Author

Hi Scott,

See todo and comment :)
Currently it just does this for ALL hierarchical categories in the media modal (no matter if they are Pods created fields or others). I think some verification and checks (and maybe options?) should be made.

* Validate for an array
* Otherwise we didn't change this functionality since this is a string by default in WP core
*/
if ( is_taxonomy_hierarchical( $tax ) && is_array( $terms ) ) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also verify that this is a Pods field?

@sc0ttkclark sc0ttkclark marked this pull request as draft July 15, 2020 16:12
@sc0ttkclark sc0ttkclark changed the base branch from 2.x to main July 15, 2020 16:13
@sc0ttkclark sc0ttkclark dismissed a stale review July 15, 2020 16:13

The base branch was changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: UI Issues related to user experience and interfaces Status: In Progress Issue or PR is currently in progress but not yet done Status: Need Dev Feedback Waiting on feedback from developer of PR Type: Enhancement Enhancements to features that already exist, but are not major additions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants