Does Anyone Know The Best Approach To Enable Users To Create Their Own Categories & Tags That Can Be Used To Filter Their Posts?
Greetings Bubble Community,
I am currently tackling what seems to be the most challenging aspect of my application.
Here’s what I’m trying to do:
-
On the page where users can submit a post, I want the users to also be able to create their own category and tags associated with the post as well.
-
Specifically when the user creates tags, I want those particular tags to be associated with the category. (Examples:
Post #1 has 3 associated Tags - fantasy, adventure, family that belong to the Category - ‘Movies’)
Post #2 has 2 associated Tags - startup ideas, marketing tips that belong to the Category - ‘Business Trends’)
Post #3 has 3 associated Tags - horror, thriller, adventure that belong to the Category - ‘Movies’)
That way, when the user creates new posts in the future and selects from the dropdown menu of tags that they already created for a particular category, it doesn’t show irrelevant tags that has nothing to do with their pre-defined category.
- On the User’s Profile Page, I want to showcase all the categories that the user created and display those categories as buttons to filter the user’s posts in a repeating group. I also want to display the tags associated with a selected category to allow for further filtering of posts
**I really want to know what is the best approach to achieve this. **
Nonetheless I will place some images below to display my setup so far:
In doing so, please let me know what you think I should add or change to achieve the desired outcome.
DATA TYPES
IMAGE A: Category Data Type
IMAGE B: Tag Data Type
IMAGE C: Post Data Type
POST SUBMIT PAGE
IMAGE D: Create New Post Page
Note: I’m still trying to figure out how to create a checkbox menu in a dropdown list for multiple tag options to be selected. Therefore, for now, I’ve just used the dropdown menu element.
When the user clicks on the ‘create a new category’ button, a popup becomes visible, where they can enter the category name and submit. Then the category name is listed in the drop down menu for selection. The same is true for the ‘create a new tag’ button.
IMAGE E: Post Button Workflow
CUSTOM STATES
Image F: I created Custom States on the Profile Page for Categories and Tags
Image G: I set a custom set for the category filter button in repeating group
Image H: I set a custom state for the tag filter button in repeating group
CATEGORIES DISPLAY
Image I: Category Repeating Group
TAGS DISPLAY
Image J: Tags Repeating Group
Image K: Tag Button Display Expression
POSTS DISPLAY
Image L: Posts Repeating Group