Skip to content

Dynamic filter options based on parent category / Contextual filtering #72

@eelko-sterk

Description

@eelko-sterk

We are using a single Statamic collection for all our products. Within this collection, we have around 40 "Product Categories" (Taxonomies). We want to implement layered navigation where the filter options adapt based on a pre-selected "Parent" category.

Example (Automotive):

Parents: Audi, BMW, Volvo

Series (Children): 1-series, 3-series, A1, A3, V40, etc.

The Scenario:
If I am on a landing page specifically for "BMW" and I place a Livewire filter with the initial content filtered to parent == BMW, I want the "Series" filter to only show BMW-related options (1-series, 3-series) and hide options for Audi or Volvo.

My Question:
Is it currently possible to restrict the available filter options based on a parent value or a hardcoded term, without having to create 40 separate Statamic collections?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions