Active
Project:
Translated Entity Reference
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2015 at 07:38 UTC
Updated:
27 Apr 2018 at 14:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chrlvclaudiu commentedHi,
This is what I had in mind when I first saw this module. But don't worry, by using the same approach you can build the implementation to support "select" widgets as well. Just override the
EntityReferenceHandler::getReferencableEntities()and add a language filter there. Perhaps I'll have some time do create a patch for this.Good luck.
Comment #3
capellicI too would love it if this module removed the entities from radio/checkbox/select lists. And just to be clear, while it doesn't filter it out, it will throw an error if you select an entity that isn't allowed:
"The referenced entity (node: 1886) is invalid."
Comment #4
capellicI created a patch to support the select and radio widgets. I didn't test checkboxes.
Comment #5
rob c commentedNice work! I'll test that next week capellic!
Just dropping a note about https://www.drupal.org/project/entityreference_view_widget because now that we have checkboxes, radios, selects and autocomplete, we might also want to look into other modules that could benefit? Would be great if all these support the idea behind translated_entityreference (Ability to filter per language of the parent entity).
Comment #6
awolfey commentedAdding an update of this patch that fixes the same issue that was in #2207107: Undefined variable: entity_info.