Can't add new Relationship items with List view enabled on a three-tier relationship #6708
millionleaves
started this conversation in
Ideas
Replies: 2 comments
-
|
I don't think this worked in Pods 2.7.x but it's definitely not supported right now in our flows. We hope to revisit the modal flow when we determine better UX for how to differentiate which modal you are in when adding items deeper within modals. It's confusing (I know) and that's why it's forced off when already in an add new modal. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks. I figured there would be a reason for it, so I’m happy for that to be tagged something other than bug.
…________________________________
From: Scott Kingsley Clark ***@***.***>
Sent: Wednesday, October 6, 2021 2:58:25 PM
To: pods-framework/pods ***@***.***>
Cc: millionleaves ***@***.***>; Author ***@***.***>
Subject: Re: [pods-framework/pods] Can't add new Relationship items with List view enabled on a three-tier relationship (#6161)
I don't think this worked in Pods 2.7.x but it's definitely not supported right now in our flows. We hope to revisit the modal flow when we determine better UX for how to differentiate which modal you are in when adding items deeper within modals. It's confusing (I know) and that's why it's forced off when already in an add new modal.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#6161 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADE5DZHO3TF7FD4W4VMQVDUFOUMDANCNFSM5FK7J4DA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have a Pod set up with this structure via relationships:
-Parent pod
--Child pod
---Grandchild pod
The Child pod has a relationship to the Grandchild pod, with a limit of 10 Grandchild items. The item display on the Child pod is set to List view. In the List view settings, I've enabled the option to Allow Add New.
https://www.dropbox.com/s/1403isahtxhwezy/Screen%20Shot%202021-10-05%20at%2019.07.20.png?dl=0
When I edit the Child item, I can add new Grandchild items.
When I edit the Parent item and, from there, edit the Child, the New button does not appear on the Grandchild relationship field.
https://www.dropbox.com/s/4fa0anxo8vj0iwh/Screen%20Shot%202021-10-05%20at%2019.07.46.png?dl=0
Expected behavior
I expected to be able to add a new grandchild item directly from the child pod.
Screenshots / screencast
See Dropbox links above.
Possible workaround
The only workaround is to edit the Child item. My ideal workflow is to start with the Parent item and drill down.
Pods version
2.8-RC1+
I downloaded the latest dev copy from Github about 12 hours ago.
Pods Package Export
{ "meta": { "version": "2.8.0-rc-1", "build": 1633414995 }, "pods": [ { "name": "kit", "id": 30, "label": "Kit", "description": "This is the top-level page for a Teacher Support Material package", "type": "post_type", "storage": "meta", "label_singular": "Kit", "public": "1", "show_ui": "1", "rest_enable": "1", "supports_title": "1", "capability_type": "page", "default_status": "publish", "groups": [ { "name": "more_fields", "id": 31, "label": "More Fields", "description": "", "weight": 0, "fields": [ { "name": "contents_page", "id": 32, "label": "Contents Page", "description": "Add the Contents page for this kit, or edit the existing page. You can't add more than one Contents page. Removing the existing content item will unlink it but not delete it from the site.", "weight": 0, "type": "pick", "pick_object": "post_type", "pick_val": "kit_contents", "sister_id": "-- Select One --", "post_status": "publish", "pick_table": "-- Select One --", "required": "0", "pick_format_type": "single", "pick_format_single": "list", "pick_format_multi": "checkbox", "pick_display_format_multi": "default", "pick_display_format_separator": ", ", "pick_allow_add_new": "1", "pick_taggable": "0", "pick_show_icon": "1", "pick_show_edit_link": "1", "pick_show_view_link": "1", "pick_limit": "0", "pick_user_role": "Administrator", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1" }, { "name": "starter_ideas", "id": 33, "label": "Starter Ideas", "description": "You add a new Starter Ideas page (for new kits) or edit the existing item. You cannot have more than one of these per kit.", "weight": 1, "type": "pick", "pick_object": "post_type", "pick_val": "starter_ideas", "post_status": "publish", "pick_table": "-- Select One --", "required": "0", "pick_format_type": "single", "pick_format_single": "list", "pick_format_multi": "checkbox", "pick_display_format_multi": "default", "pick_display_format_separator": ", ", "pick_allow_add_new": "1", "pick_taggable": "0", "pick_show_icon": "1", "pick_show_edit_link": "1", "pick_show_view_link": "1", "pick_limit": "0", "pick_user_role": "Administrator", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1" }, { "name": "the_science", "id": 53, "label": "The Science", "description": "", "weight": 2, "type": "pick", "pick_object": "post_type", "pick_val": "kit_science", "sister_id": "-- Select One --", "post_status": "publish", "pick_table": "-- Select One --", "required": "0", "pick_format_type": "single", "pick_format_single": "list", "pick_format_multi": "checkbox", "pick_display_format_multi": "default", "pick_display_format_separator": ", ", "pick_allow_add_new": "1", "pick_taggable": "0", "pick_show_icon": "1", "pick_show_edit_link": "1", "pick_show_view_link": "1", "pick_limit": "0", "pick_user_role": "Administrator", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1" }, { "name": "curriculum_resources", "id": 56, "label": "Curriculum Resources", "description": "", "weight": 3, "type": "pick", "pick_object": "post_type", "sister_id": "-- Select One --", "post_status": "publish", "pick_table": "-- Select One --", "required": "0", "pick_format_type": "single", "pick_format_single": "list", "pick_format_multi": "checkbox", "pick_display_format_multi": "default", "pick_display_format_separator": ", ", "pick_allow_add_new": "1", "pick_taggable": "0", "pick_show_icon": "1", "pick_show_edit_link": "1", "pick_show_view_link": "1", "pick_limit": "0", "pick_user_role": "Administrator", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1", "pick_val": "kit_curriculum_resou" }, { "name": "going_deeper", "id": 59, "label": "Going Deeper", "description": "", "weight": 4, "type": "pick", "pick_object": "post_type", "pick_val": "kit_going_deeper", "sister_id": "-- Select One --", "post_status": "publish", "pick_table": "-- Select One --", "required": "0", "pick_format_type": "single", "pick_format_single": "list", "pick_format_multi": "checkbox", "pick_display_format_multi": "default", "pick_display_format_separator": ", ", "pick_allow_add_new": "1", "pick_taggable": "0", "pick_show_icon": "1", "pick_show_edit_link": "1", "pick_show_view_link": "1", "pick_limit": "0", "pick_user_role": "Administrator", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1" }, { "name": "community", "id": 62, "label": "Community", "description": "", "weight": 5, "type": "pick", "pick_object": "post_type", "pick_val": "kit_community", "sister_id": "-- Select One --", "post_status": "publish", "pick_table": "-- Select One --", "required": "0", "pick_format_type": "single", "pick_format_single": "list", "pick_format_multi": "checkbox", "pick_display_format_multi": "default", "pick_display_format_separator": ", ", "pick_allow_add_new": "1", "pick_taggable": "0", "pick_show_icon": "1", "pick_show_edit_link": "1", "pick_show_view_link": "1", "pick_limit": "0", "pick_user_role": "Administrator", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1" } ] } ] }, { "name": "kit_contents", "id": 15, "label": "Kit Contents", "description": "", "type": "post_type", "storage": "meta", "label_singular": "Kit Contents", "public": "1", "show_ui": "1", "rest_enable": "1", "supports_title": "1", "supports_excerpt": "1", "supports_thumbnail": "1", "groups": [ { "name": "kit_contents", "id": 18, "label": "Kit Contents", "description": "", "weight": 0, "meta_box_context": "normal", "meta_box_priority": "default", "roles_allowed": "administrator", "fields": [ { "name": "kit_includes", "id": 68, "label": "Kit Includes", "description": "This is a text box where you can supply a list of what this kit includes. You can use regular text formatting, but you cannot insert images.", "weight": 0, "type": "wysiwyg", "sister_id": "-- Select One --", "required": "0", "wysiwyg_editor": "tinymce", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1", "wysiwyg_editor_height": "20", "wysiwyg_trim": "1" }, { "name": "health_and_safety", "id": 78, "label": "Health And Safety Notices", "description": "This field should be enabled if you want the H&S messages for individual activities to display. Otherwise, a generic message will be displayed instead.", "weight": 1, "type": "boolean", "sister_id": "-- Select One --", "required": "0", "boolean_format_type": "checkbox", "boolean_yes_label": "At least one activity in this kit has a specific H&S notice.", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1", "boolean_no_label": "No" }, { "name": "kit_activities", "id": 22, "label": "Kit Activities", "description": "Add one or more kit activities here. Drag and drop them to define the sequence you want them to display on the page.", "weight": 2, "type": "pick", "pick_object": "post_type", "pick_val": "kit_activity", "sister_id": "-- Select One --", "post_status": "publish", "pick_table": "-- Select One --", "required": "0", "pick_format_type": "multi", "pick_format_single": "dropdown", "pick_format_multi": "list", "pick_display_format_multi": "non_serial", "pick_display_format_separator": ", ", "pick_allow_add_new": "1", "pick_taggable": "0", "pick_show_icon": "1", "pick_show_edit_link": "1", "pick_show_view_link": "0", "pick_limit": "10", "pick_user_role": "Administrator", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1" } ] } ] }, { "name": "kit_activity", "id": 10, "label": "Kit Activities", "description": "", "type": "post_type", "storage": "meta", "label_singular": "Kit Activity", "public": "1", "show_ui": "1", "rest_enable": "1", "supports_title": "1", "supports_thumbnail": "1", "supports_excerpt": "1", "groups": [ { "name": "more_fields", "id": 11, "label": "More Fields", "description": "", "weight": 0, "fields": [ { "name": "activity_name_en", "id": 12, "label": "Activity Name - English", "description": "", "weight": 0, "type": "text", "sister_id": "-- Select One --", "required": "0", "text_allowed_html_tags": "strong em a ul ol li b i", "text_max_length": "100", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1", "text_trim": "1" }, { "name": "activity_video_en", "id": 80, "label": "Activity Video - English", "description": "", "weight": 1, "type": "file", "sister_id": "-- Select One --", "required": "0", "file_format_type": "single", "file_uploader": "attachment", "file_attachment_tab": "upload", "file_upload_dir": "wp", "file_edit_title": "1", "file_show_edit_link": "0", "file_linked": "0", "file_limit": "0", "file_restrict_filesize": "10MB", "file_type": "video", "file_field_template": "rows", "file_add_button": "Add English Video", "file_modal_title": "Attach a file", "file_modal_add_button": "Add File", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1" }, { "name": "activity_name_ml", "id": 76, "label": "Activity Name - M\u0101ori", "description": "Activity name in M\u0101ori", "weight": 2, "type": "text", "sister_id": "-- Select One --", "required": "0", "text_allowed_html_tags": "strong em a ul ol li b i", "text_max_length": "100", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1" }, { "name": "activity_video_ml", "id": 81, "label": "Activity Video - M\u0101ori", "description": "Upload the Activity video in M\u0101ori.", "weight": 3, "type": "file", "sister_id": "-- Select One --", "required": "0", "file_format_type": "single", "file_uploader": "attachment", "file_attachment_tab": "upload", "file_upload_dir": "wp", "file_edit_title": "1", "file_show_edit_link": "0", "file_linked": "0", "file_limit": "0", "file_restrict_filesize": "10MB", "file_type": "video", "file_field_template": "rows", "file_add_button": "Add M\u0101ori Video", "file_modal_title": "Attach a file", "file_modal_add_button": "Add File", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1" }, { "name": "age_range", "id": 13, "label": "Age Range", "description": "Edit the age range for this activity in plain text format, e.g. Y2-Y4 or 2-4.", "weight": 4, "type": "text", "sister_id": "-- Select One --", "required": "0", "text_allowed_html_tags": "strong em a ul ol li b i", "text_max_length": "100", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1" }, { "name": "health_safety", "id": 14, "label": "Health And Safety", "description": "This text will be included in the Health and Safety section of the Activity page for this kit.", "weight": 5, "type": "text", "sister_id": "-- Select One --", "required": "0", "roles_allowed": "administrator", "rest_pick_response": "array", "rest_pick_depth": "1", "text_allowed_html_tags": "strong em a ul ol li b i", "text_max_length": "255" } ] } ] } ] }Beta Was this translation helpful? Give feedback.
All reactions