Hey everyone, it has been a while since I posted, today, I come to the brilliant minds, because for some reason I can’t seem to figure this out, so, I got the general structure done, but I also am trying to implement if the account has friends, show the friend’s statuses, but for some reason, it’s not working.
Anyone have any ideas how I can accomplish this?
What page are you talking about? I don’t see a repeating group at all on the page that’s linked. I’m happy to take a look if you can point me in the right direction!
Here is the link to the page where the RPG is; https://bubble.io/page?type=page&name=home&id=crownnetwork&tab=tabs-1
I probably would’ve structured this differently. The repeating group would have been of type Friend, then each cell would just reference the current cell’s Friends status. I’m away from my computer at the moment, so I’m just pulling it up from memory. I think you had a thing called status, and are using that?
So i see currently you have your repeating group data source set to Search for all statuses.
But what you want is the Current user’s statuses plus the current users’s friends statuses.
So you can use the
merged with operation , which allows you to merge two lists.
So the data source for your RG should be
Current User's Statuss merged with Current User's Friends's Statuss.
Then you can do the sorting
Yeah, I have a thing called status, but I am starting to think that it wasn’t the best idea, due to the fact I want to use a totally different status on Member made pages.
If you don’t want to show the users status on his own page you simply call Current user’s friends statuses
That’s not what I meant @seanhoots, what I meant by “I want to use a totally different status on Member made pages,” is that members have the ability to create pages on their passions or interests, I want to make a status separate for that so it won’t show the Home page feed on Pages, but right now I trying to figure out how to structure the Home page so that I can implement if two accounts are friends they can view each other’s statuses.
At the moment you are driving the search from the “bottom up” (i.e. from status) so your would search every status and then filter on users that are either a) the current user or b) in the current user’s friends.
You will still need to do a merged with to get the list of users.
Doing it “top down” (from user) as Sean has described above may well be the better way.
"Current User's Statuss merged with Current User's Friends's Statuss."
… is exactly what I would be doing.
Although if you only want the “current” status, that you may need to do some sorting and :firstitem
So slight problems, upon trying to do Current User’s Statuss merged with Current User’s Friends’s Statuss, it came out blank on my RG, I’ve tested this two different ways, none of them seemed to work. So I am still back at only displaying the current user’s status using a search and then constraint.