Skip to content

Be able to access current entry data inside a query scope #1401

@dadaxr

Description

@dadaxr

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.

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions