I am trying to create a content type that generates a list of content/nodes based on other content type or taxonomy terms selected within that node in the content type. I have a general content type for Articles and those are tagged with a taxonomy vocabulary for "Category".
This is within Drupal 9.
What I've done so far:
Create a new content type named "Custom List"
Add a field for an entity reference for Taxonomy Terms. Set the field to unlimited and selected the taxonomy vocabulary for Category. Then set the field to display as radio/checkboxes.
Created a View for Custom Lists as a Block. Set the block to display only on Custom List content types.
Set the View to list 10 items, with a contextual filter for Taxonomy Term ID, set to display all results.
What I want to happen:
When I create a new node for this Custom List content type, I will see the Categories taxonomy field I added as a list of checkboxes. I can check any number of taxonomy terms from this Categories vocabulary and the page will then display a content list of content that are only tagged with the terms I selected within this node. For example if I selected "News" and "Blog" as my terms, the list will only show content tagged with Category > News and Category > Blog.
Eventually I will be able to select Content Types as a filter on top of the taxonomy terms, but for now Im just trying to get the taxonomy filter working first.
What is actually happening:
The list generated still displays every content regardless of the term I selected when I created or edit the node. I have tried many things such as adding relationships from the Taxonomy Entity Reference field (Category) as well as the taxonomy term itself but to no avail.
Can someone help me with this issue or suggest a better or easier solution? Most likely my View isnt setup correctly as Im very inexperienced with contextual filters. I'm not even sure if I can achieve what Im trying to do with Contextual Filters. If there are any modules out there that can do what Im trying to do please advise or suggest them as well. Thank you all for your time.