Hello everyone, I need to build an app to archive a content for a writer, he makes a groups of posts, each group contains a different number of posts, each group have different shape for it's posts than other groups, I need to to build the dashboard to build the the groups and their posts dynamically, any ideas on how to do it, and what tools to use to accomplish this?
#Need help getting the bigger picture.
12 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
inside your database you can save all posts the same. Maybe also group them there with a group object as well (but that's optional).
After you saved it, you can load it and display it. To display your post in different types, you can make different components that displays your post differently. All of these components take the same data, but display it differently
sorry if I didn't write what I meant clearly.
I want to archive the content for a scholar who sometimes writes a series of posts related to a single subject, this series will have different shape for it's posts than other serieses.
for example a series posts have a verseId, chapterId, point_1, point_2, point_3.
another series posts may look like this: characterName, content.
I hope this is clear.
you can do the same: think of a database schema, extend the objects if there are different types (or add a type key inside an object) and then save the data inside of it.
After you saved it you can load it and display it. To display these specific objects create different components that render them correctly.
An example data structure could look like this:
https://pastebin.com/wPFFuZkg
i think you can use dynamic data.
it is dynamic data 🙂
yeah, I meant datatype.
say I used prisma, then each series posts needs its own model?
That’s one option, yea. Another option would be to create only one „model“ (it’s a database table btw) and think about the fields that are required for every series. Then add all other fields and make them optional
✅ Success!
This question has been marked as answered! If you have any other questions, feel free to create another post
Jump to answer
[Click here](#1308662902122745906 message)