Timeline for Can we add different fields to instances of the same entity?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 14, 2012 at 16:58 | vote | accept | Chetan | ||
Nov 12, 2012 at 18:50 | comment | added | avpaderno♦ | The Relation module is for relationships between two entities, not between an entity and a field. | |
Nov 12, 2012 at 17:56 | comment | added | Chetan | I am again reply to this post as i found one module drupal.org/node/1274796 now as with my problem i have to add diffrent field at instance level... can i use relation module here??? like in example given above can i use relation "Chicago --> hasField --> CField 1" and " Newyork --> hasField --> Nfield1", " Newyork --> hasField --> Nfield2"... please let me if this is possible with relation module because as per my modules requirement i must have to attach custom fields at instance level.. so hook_field_access() is not going to work for me... | |
Nov 8, 2012 at 21:16 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
improved grammar; expanded the answer
|
Nov 8, 2012 at 21:12 | comment | added | Chetan | Thank you very much.. I stretched it cause I thought there will be some way to do that.. | |
Nov 8, 2012 at 21:11 | vote | accept | Chetan | ||
Nov 12, 2012 at 18:00 | |||||
Nov 8, 2012 at 20:56 | comment | added | avpaderno♦ | My answer is still the same: Fields are added to entity bundles, not to entity instances. You cannot have a field that is attached just to an entity instance, and not another one, if they are both of the same entity bundle. You can avoid a field is editable, and visible, though; that would be like if it doesn't exist for that entity instance. | |
Nov 8, 2012 at 20:53 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
added 511 characters in body
|
Nov 8, 2012 at 16:27 | comment | added | Chetan | Thanks for your response.. can you please see updated question | |
Nov 8, 2012 at 5:13 | history | answered | avpaderno♦ | CC BY-SA 3.0 |