Hello, I am making a library app to display books & their details. The database is community managed, as in users can add books to the library. These books are then moderated by a group of mods.
What I’m having trouble with is getting the main library repeating group to filter properly.
How it’s set up:
each book has a type (audio, eBook, or webnovel) set as a yes/no values.
each book has a genre (14+ genres and subgenres) all set as yes/no values.
What I want to do is have a repeating group that displays a list of all of the books in the library at load, but can be filtered to show books with only the exact combination of book type and genre.
Exe: A book that has both an audio book and eBook format, with the both fantasy and science fiction genres set as yes.
I am willing to change the database structure, as there is only about 300 books now and I can go through and change them, or have mods do it.
Is there a way to do this?
Here’s some screenshots.
Write a little recursive workflow so you don’t have to do it manually to add the Types and Genres to your books. You can also do this manually if need be.
Add a custom state to your page for Type and Genre and make them both lists.
Add a workflow to add to the user selections to the respective custom states when user wants to filter.
Then your filter on the RG would simply contain 2 constraints, 1 for each option set.