Filtering a collection for the table layout using url parameters #6493
Replies: 5 comments 18 replies
-
Ideally you'd want to create a O2M field from project to task. This would show a listing of related tasks that can open in a drawer when clicked. |
Beta Was this translation helpful? Give feedback.
-
Hi @rijkvanzanten , @benhaynes I'd like to get both your feedback on what I'm trying to do to see if there is a simpler short term solution for my use case. I'm building out an OKR mvp and timing is pretty important. It's going to be used by executives, they aren't power users. My current issue is drilling through from Objective to Key Result to Tasks isn't a particularly smooth experience when going a few relationships deep. Forms that a great for data entry aren't as 'nice' for browsing the data. The list O2M style is very flexible but having a large number of tasks in a list is quite hard to work with. Each line is a different length, you can't sort, filter etc. A future opportunity for inline editing probably isn't possible? Are there features of the list O2M that I am not appreciating that would help with this? Because it does appear that a new table interface component addresses a different type of usecase / data to the list. Could you suggest another way of structuring / accessing / displaying this task data with current capabilities the suit browsing vs editing? Another feature that may be nice is to differentiate between the form that creates a new item and one that updates an item. During creation, things like the name, description make sense to be first, however during updating, it's more likely to be fields like status, assignee etc that will need to be updated. I think having a unique layout for both would improve the experience. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
I face the same problem. Lets capitalize on the project / tasks of the OP. Each tasks has a key referring to a project's id. It's possible to have a hundred tasks for a project. Each task has a status, a manager, due dates... In such a condition, the advantage of having a filtered collection by the project's id is that, on the filtered collection of tasks,
The URL could be like Sort of preset bookmark but with the value of the project's |
Beta Was this translation helpful? Give feedback.
-
I am designing a system where there is a One Blog Post - Many Comments relationship, and Admin can Approve or Disapprove comments. The number of Comments on a Post can be large, so listing them all in a One-to-Many field in a Post detail page can be very inefficient. I would like to create a Button Link on the Post detail page, which will direct Admin to the Comments list page, and set the filtering field appropriately. I think the way to go for this is to store and infer the filtering on the List page directly from URL query. |
Beta Was this translation helpful? Give feedback.
-
Since my discussion on this topic and PR got closed I guess I'll settle to support this :) It isn't a must have, but would make have made onboarding users a lot easier I believe. Now we have resorted to our own custom modules since the content module is too complicated for non technical users. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm looking to create an internal project management app for my business leveraging the Directus admin app. I'd like to be able to access all the tasks related to a project via a button on the project detail screen.
Eg on /admin/collections/projects/1 use a button that links to /admin/collections/tasks/?filter[project.id]=1
Is there a way to apply this kind of filter to the table layout dynamically rather than relying on bookmarks?
Thanks
Mark
Beta Was this translation helpful? Give feedback.
All reactions