I am curious how to set up a members favorites page where they can take content from my site and save to their profiles to reference at a later time.
I have a database that has a few pieces of content. I then have a repeater that filters through based on a dropdown and then shows the data.
I want to place a “bookmark” or “favorites” button on those pieces of content so when a user clicks it, it goes directly into their favorites page.
I’ve used this page for reference, but I’m not able to get it to work https://www.wix.com/corvid/forum/community-discussion/how-to-make-a-favorites-page-for-users
Here is what the code looks like on my content page:
import wixData from 'wix-data';
$w.onReady(function () {
});
export function warmup_change(event) {
$w("#repeater1").show();
let filterWarmup = $w("#warmup").value;
$w("#dataset1").onReady( () => {
if (filterWarmup === "bench") {
$w("#dataset1").setFilter(wixData.filter().eq("chest", true));
}
if (filterWarmup === "squat") {
$w("#dataset1").setFilter(wixData.filter().eq("legs", true));
}
if (filterWarmup === "press") {
$w("#dataset1").setFilter(wixData.filter().eq("shoulders", true));
}
}
)}
Any help would be much appreciated.