Open afonic opened 4 months ago
Right now if you want to filter a collection by an entries field, there are no filter options loaded.
entries
You can populate the options manually like so:
{{ collection:pillows as="items" }} {{? $pillows = $items->flatMap(fn ($item) => [$item->id() => $item->title])->all(); ?}} {{ /collection:pillows }} {{ livewire:lf-select-filter blueprint="rooms.rooms" condition="query_scope" modifier="multiselect" field="pillows" options="{{ $pillows }}" }}
To close this:
Please add support for the entries fieldtype 🙏
It's coming soon!
@j3ll3yfi5h I also added the code example above in case you need it asap.
@afonic thank you 🙇🏼
Right now if you want to filter a collection by an
entries
field, there are no filter options loaded.You can populate the options manually like so:
To close this: