AnswerBun.com

Displaying sub content (entity references) of node based only with specific taxonomy

I have been working on a solution that would allow training courses to be created using Drupal 8 as the backbone. I have elected not to use the "Courses" module and am simply using custom content types.

At this point I have the following:

Course Content Type -> which contains entity references (1 or more) to Slide Content Types -> which contain Entity references (1 or more) -> to Text or Media content (these are also custom content types). I chose not to use Paragraphs for a few reasons.

Right now I just have "Text" and "Media" content types, but plan on creating additional content types that can be added to a slide -> which in turn is added to the course.

The Text/Media both include a "Taxonomy" term that can be selected.

My goal is to be able to view a course and filter the content (the text/media) based on whether they contain a specific Taxonomy term.

I am considering how to do this using custom views, but cant figure out how to reference the Taxonomy term of the entity referenced content rather than the course object itself.

The end goal would be to have a single course object that may have some content with the Taxonomy term: student and other content with the taxonomy term instructor (some may have both taxonomies selected). I would then be able to view the same course and see some content if I view it as the instructor and different content if it is viewed as a student.

Drupal Answers Asked by jpsnow72 on December 31, 2020

0 Answers

Add your own answers!

Related Questions

Node is not created, but nid is returned

2  Asked on December 26, 2021 by ziobudda

   

EntityDrupalWrapper->value() causes infinite recursion on user login?

1  Asked on December 24, 2021 by tigertrussell

   

Feed import breaks due to ajax error

1  Asked on December 24, 2021 by kenpeter

 

Multi site Image cache issue

0  Asked on December 24, 2021 by user99683

   

How to make relationships between users

1  Asked on December 22, 2021

   

Need CKEditor to encode special characters

1  Asked on December 22, 2021 by bemarlan

   

Checkboxes in a simple form are not displayed

1  Asked on December 22, 2021 by sebish

   

How to change scheduler date format in *_node_form

1  Asked on December 21, 2021 by oskar-calvo

   

hiding taxonomy terms on term page

1  Asked on December 21, 2021 by user3027413

   

TypeError on “drush config-export”

1  Asked on December 21, 2021

     

“Broken pipe” between Nginx and PHP-FPM

1  Asked on December 21, 2021 by stephen-winnall

 

Restrict delete operation on a node referenced by another node

2  Asked on December 19, 2021 by user48552

   

How to perform views date calculations using global math?

2  Asked on December 19, 2021 by tinohuda

   

Get menu link siblings

4  Asked on December 19, 2021 by erin-mclaughlin

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved.