build a personalized feed for each user

Hi Corvid community, I’m trying on my site to allow members to follow each other. I followed the different posts on this forum, I managed to create a database that allows me to know who follows who.

Now I would like to allow the site members to be able to follow the activities of the people they follow. For this purpose, I have a database with all the data from these members!
But I find myself stuck, I can’t customize the repeater so that it only displays the activities of the people being monitored. I don’t know how to connect all the databases to make a perfect feed for my users !

I hope you can help me !
Thank you in advance, and great job for the forum!

Depending on what you are wanting your users to be able to follow with other users on your website.

You can actually do a lot of it without using code and by just using the Wix Members app on your website.
https://support.wix.com/en/article/about-members-area

To see an example of following other members and how it covers a lot of things on the website, see here.
https://support.wix.com/en/article/using-the-members-area-with-the-new-wix-blog

Yes exactly, the app and blog are indeed very good but in my case I can’t use them (I would have preferred) because of different reasons ( features, design,…)

Each of my users can create a page and publish activities on this page, this information is in two different databases (one for page and one for news).

  • I would like to be able to allow the follower to consult the pages they follow ( something like “my pages followed”)

  • I would also like to allow them to consult all the news published by the authors of the pages, kind of a home tab.

For the moment, my problem is that I can’t display in the repeater only news and pages followed by members.

If I am not very clear I apologize, do not hesitate to ask me to clarify.

Thank you very much for your help and attention and sorry for all these questions !!

@givemeawhisky , do you have an idea how will looks the strucuture of the code ?
I tried to adapt this code to my needs but I can’t find the right format. Thanks in advance !!!

import wixData from "wix-data";
import wixUsers from 'wix-users';
$w.onReady(function () {
// tell the repeater you want to update each item when it's ready
$w("#repeater4").onItemReady(function($w, itemData, index) {
// get the userId of the item (i.e. the followee)
const followeeId = itemData._owner;
// find all the records where followee === followeeId
wixData
.query("associationprofiledataset")
.eq("owner", followeeId)
.find()
.then(function (results) {
let count = results.totalCount;
 if (count === 0) {
});
});



Hi, can someone from wix recommend how my code should be built? Thank you very much and sorry I’m new to this field! @yisrael-wix

Unfortunately I don’t as I would just use the Wix apps that already provide that feature.

So I hope that somebody can provide you with a working code chunk or at least get you going in the right direction so that you can get it done yourself.