Hi guys just a quick question. I am building a audio based app.
Looking at the fitness app example judo provides in their videos, contentful seems to be a great option. I do have a question though.
Can I put particular items into groups and only show that group on a certain page, kind of like a category? What I mean by this is for example, if I had:
Yoga audios: ( shows all yoga groups )
basic yoga group ( shows all basic yoga audio )
premium yoga group ( shows all premium yoga audio )
Boxing audios: ( shows all boxing groups )
basic boxing ( shows all basic boxing audio )
premium boxing ( shows all premium boxing audio )
Hopefully I have explained that well enough… thanks in advance
Yup you can definitely do this
In fact, that Fitness example file is already doing it.
All you need to do is
filter the results of your Contentful response/content to only show the category you’d like to display/design.
For example, if you look on the
My Fitness Home page, this is shown in 2 different ways:
Use the Filter modifier on the
Collection itself, as seen in this screenshot to only show the New and Cardio videos in those Horizontal Scroll Containers:
Conditional underneith your Collection, where the Condition equals the category you’d like to show. As seen in this screenshot for the
Lightning Jog section:
So for your example, you would maybe have a Collection first filtering show all yoga, then under that Collection, one Conditional to show basic yoga audio, and then a second Conditional to show all premium yoga audio. Then the same for boxing.
Let me know if that makes sense!
Hi Kevin, Thanks for the detailed reply, this is exactly what I am after, thanks so much!
Would you have any tutorials coming out on how you created the contenful template for the fitness app?
@gwinnellh I’ve made one already actually! Apologies should’ve linked it for you earlier on.
But here it is!
Contentful is a powerful headless content management system that allows you to easily update content on your website and mobile app without worrying about the backend. If you want to do even more with your mobile content and accelerate your product...
Est. reading time: 1 minute
Sorry to keep asking questions but this has got me super stumped.
My app will somewhat go like this:
HOME → LIST OF AUDIO CATEGORIES → CATEGORY LIST → AUDIO PLAYER DETAIL VIEW
HOME - LIST OF SLEEP CATEGORIES → CATEGORY LIST → AUDIO PLAYER DETAIL
on the homepage though i will have some of these audios and categories featured. Can I do this with a boolean?
I have attached what i have so far on contentful, should i only have one item in the content model? Super confused.
I know this isnt a judo question but its somewhat the final step before i go live which is super exciting!