Hi,
Possibly a bug while communicating term selected by entity reference to context module with condition taxonomy.

I created a view of type term, display: entity reference,fields:taxonomy term name
Then I created a entity reference field, select list, target type taxonomy term, entity selection: views(previously created view).

Now, when selecting a term on node edit page, taxonomy_index table is populated, but context module taxonomy condition does not react to it at all.

Comments

loparr’s picture

Project: Entity reference » Context
Version: 7.x-1.x-dev » 7.x-3.x-dev

maybe this is issue for context module

camhoward’s picture

I'm having a similar issue.

I'm using Context to display a different block on different pages based on a taxonomy term. The "Condition" is "Taxonomy" and within the Taxonomy condition, I have selected a particular term. The "Reaction" is to display the block.

When the field used to designate the taxonomy term on the node is a "Term reference" field type, Context works fine and the appropriate block is displayed on all nodes with the desginated taxonomy term.

When the field used to designate the taxonomy term on the node is an "Entity reference" field type, Context does not display the block. It's as if Context doesn't see the taxonomy term. I know the entity reference field is working, however, because I can create a View with it.

Can this be fixed or is there another way to get Context to work with Entity reference used to select taxonomy terms?

I'm using Drupal 7.32, Context 7.x-3.3, and Entity Reference 7.x-1.1.

tekante’s picture

Status: Active » Needs review
StatusFileSize
new1.72 KB

The current context taxonomy condition only knows how to inspect the taxonomy term reference field. Attached is a patch that would add support for inspecting entity reference fields that have taxonomy terms as targets for testing with.

tjhellmann’s picture

Status: Needs review » Reviewed & tested by the community

Patch worked great. Thanks!

jedsaet’s picture

+1 on RTBC

troybthompson’s picture

Solved my problem as well.

  • hass committed 9086a68 on 7.x-3.x authored by tekante
    Issue #2311645 by tekante: terms selected using entity reference and...
hass’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.