Oct 25, 201911:09 AM - edited Oct 28, 20191:29 PM
Top Contributor
Edit hubdb filter within the webpage editor
SOLVE
Is it possible to edit an existing HubDB filter within the page editor? I want to reuse the same module over and over again on different pages, but change the filter settings based on the number of bedrooms, for example 1, 2, 3, 4, 5. See attached.
I've created a basic filter which displays any houses with the status column set to 'Available'. See below:
{% set table = hubdb_table_rows(module.table_id, "&status=Available") %}
It works perfectly as it's hard coded, however how do I use the choice field so I can control it before pushing live? I've tried the below, but it breaks!
{% set table = hubdb_table_rows(module.table_id, "&type={{ module.bedrooms }}") %}