Problem/Motivation
Our site uses media as well as node so we need the ability to have term based off of a media entity.
Steps to reproduce
- Have a taxonomy field on a media entity.
- Have a context or block based off of a taxonomy term. On the
/media/xxxxpage it does not show the context/block.
Proposed resolution
Simple code fix on Term.php to add 'media' => 'media' as a route match.
Remaining tasks
I'm going to submit a patch for it.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3217275-add-media-as-route-match-2.0.3.patch | 576 bytes | unsettlingtrend |
| #5 | 3217275-add-media-as-route-match-2.0.1.patch | 585 bytes | niles38 |
| #2 | 3217275-add-media-as-route-match.patch | 583 bytes | niles38 |
Issue fork term_condition-3217275
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
niles38 commentedThis patch works for us... testing needed for other sites.
I did notice comment for TODO (future work) to add a hook to this. That would come in handy so this patch wouldn't be necessary.
Thanks!
Comment #3
niles38 commentedComment #4
niles38 commentedComment #5
niles38 commentedHere's the same patch for 2.0.1.
Comment #6
unsettlingtrendSame patch, again, for 2.0.3 (D10 ready)
Comment #10
astonvictor commented