I know how to filter with a dropdown selection using a repeater by setting a filter on the data connection. i would like to have this function on the standard blog page. Since there is no data connecter used in this I have no clue how to filter this.
Of course, you can use the basic categories/tags but with a lot of categories/tags this becomes a real mess.
For others, this is a way to do this with a repeater;
import {wixData} from ‘wix-data’ ;
export function dropdown1_change(event, $w) {
$w( “#dataset3” ).setFilter(wixData.filter()
.contains( "title" , $w( '#dropdown1' ).value))
.then((results) => {
console.log( "Data is now filtered" );
$w( "repeater1" ).data = results.items;
}). catch ((err) => {
console.log(err);
});
$w( "repeater1" ).expand();
}
Eventually i would like to have something like Wix Stores: Adding Sort and Filter Options to Your Product Gallery | Help Center | Wix.com for my blog page