Hi, I’m using a repeater to create a comment section, I want each site member to be able to leave a “like” on whatever comment the choose if they want to. How do I achieve that? Whatever help will be much appreciated.
2 Likes
Hi Manny,
Do you want to get a result like wix blog a like button with number count ?
Hello Manny.
You can add button into repeaters container, then add $w(‘#likeBtn).onClick() inside of
$w(’#repeater’).onItemReady ($w, itemData, index) … Each button will have different context.
//example
$w('#repeater').onItemReady( ($w, itemData, index)=>{
$w('#likeBtn').onClick(event=>{
///do stuff with ItemData
}
});
Yes, I’m trying to get a result like wix blog, a “like” button with number count.
I really don’t know how to achieve that. Please help. Thanx.
hello did you found a way to do it ?