Hi Bubblers,
I’m having trouble trying to display a content’s written ‘article’ from a certain category.
For example - if you land on the categories page it will show you on a repeating group a list of all the categories. If then you select a category it takes you to another page with all the “contents/articles” from within that category. Once you click on the article you want it then displays that on another page.
The problem im having is…
When I click on the category to look into it’s contents/articles it’s showing ALL of the articles on every category, so no matter which category you select it displays all of them. OR now it’s not displaying them at all! can’t seem to make it work at all.
How do i make it so when you select a category it displays only that categories content/articles. And when i select the article it displays that specific article on the next page.
I have attached pictures of the data types and everything you should need to answer the problem hopefully!
I’ve gotten as far as displaying the categories please help!
On top of that would you suggest a better way it can be done, maybe one that’s easier on the database and system as this ap is planning to have hundreds of users.
Thanks ahead!
“When I click on the category to look into it’s contents/articles it’s showing ALL of the articles on every category, so no matter which category you select it displays all of them”
- Save the category the user selects in a custom state.
- add a conditional expression to the articles RG that if the custom state category is not empty only display articles with the category saved in the custom state.
Thank you for helping me on this.
I can see how this works! But struggling to impliment it.
This is as far as i gotten.
You seem to be putting the condition in the data source. The data source should be the same as the default data source with an added filter.
You also seem to be confused about custom states as you are switching between Category Saved and Content Tile
Note: Bubble can be an awesome tool but it doesn’t allow you to skip learning the basics of databases, conditional logic, etc.
Beleive it or not, i’ve actually built a fully working app, but since then it been a while and i can’t for the life of me work this out. Very tried over last few days but need ot get this done!
With that said. Your right, changes made. I forgot it had to be same source yess.
How do i get the bit where “only display articles with the category saved in the custom state.” to happen i can’t think how to show it.
This is where i am at.
a condition that when the custom state is not empty → the data source should be the default data source filtered to only contents with a category matching the custom state value.
Of course you must make sure that the UI exists for the user to add/remove the category filter.
Actually i’m not trying to give user the option to add remove category filter.
This is a process where they can chose a category then veiw the content of that category, and view the article of available contents.
So it must be done with a condition to display the specific content in specific categories. OR using the search filter specifics - is there a way i can edit the advanced search to only display the content of that category?
I’ve already managed to display the correct categories when clicked and also correct articles when they’re clicked - it’s jsut the specificity of the contents related to the category it came from.
that sure sounds like a user choosing to add or to remove a category filter
Ah sorry yes, i thought something different for a second.
Let me work on what you’ve said so far. Thank you for your assistance!