-
Notifications
You must be signed in to change notification settings - Fork 1
Description
When using query scope with a relation field (like entries or taxo terms), It would be powerfull to be able to access the current entry data.
Ideally being able to access the current live data would be awesome, but it seems a bit difficult, so at least the current entry Id, so we can retrieve its stored data to update the query accordingly.
Filament allow us to do that by the way by accessing the livewire component.
Just to give some context ... I have an Article Collection, Each article can select a category (taxo term), and many tags (also taxo terms) and based on the current category, I want to restrict the list of available Tags term (another taxo).
For now, I've simply duplicated the tags fields (one by category (ie tags_for_products, tags_for_sponsoring, ... ) and conditionnaly display them. then apply custom query scope to each of these tags fields.