Creating separate threads on a social media website

How do you create separate threads where users can reply to different responses to a post like Twitter?

Have a datatype for ‘Post’, a datatype for ‘Comment’, and a datatype for ‘Comment_Reply’ - for example.

The Comment datatype can have a field for Post, and the Comment_Reply datatype can have a field for Comment (and maybe also for Post)

Then just use nested repeating groups to display the comments and replies.

Can you explain how to achieve the comment replies with the current structure I have set up here?

not really, as I can’t really work out what you’re trying to do…

I’m guessing you want people to be able to comment on your videos? in which case just use your Video datatype in place of the Post datatype in my example above.

I’m trying to allow users to respond to a video reply with another video creating a separate thread of replies

Ok, so there a various ways to do it…

But the simplest way might be to have a datatype of ‘Thread’, and then you can either have a list of video replies on the Thread, along with a field for Video…

Or just have a Thread field on the Video Reply datatype to relate the Video Reply to the thread…

I will give that a try and let you know how it goes. Thanks.

What kind of field would the thread be? A list of videos? Thanks.

@josh24 Can you help with this?

@mikeloc Are you able to help with this?

If you were going to use that approach then ‘Thread’ would be a datatype (not a field), containing fields for Video, User, Comments etc.

But, like most things, it really depends on what you’re trying to do, and what kind of data you’re expecting to have… if you’re anticipating comments to get lots of replies (like forum posts and discussions tend to), then using a ‘Thread’ datatype to keep things organised would seem like a logical way to go.

But if most comments wouldn’t get a reply (like on Facebook for example), or maybe just one or two replies, then it might be unnecessary - just use the structure I outlined in my first reply (i.e. Video > Comment > Reply)

What’s best for your app really depends on your app.

This topic was automatically closed after 70 days. New replies are no longer allowed.