Field collection is a module that provides a field-collection field to which any number of fields can be attached.

learn more… | top users | synonyms

1
vote
0answers
17 views

Blank row when adding field collection item

I have a Content Type with a Field Collection that can have multiple entries. Whenever i click on "insert new element" i get instead a blank row with a "delete" button but no fields to fill. (site is ...
-2
votes
0answers
26 views

Clone field collection row in form add

I am new to this community and I hope I will be clear in my support request. I have a custom form that uses nested field collection items as follows: > form > form_field_a > ...
0
votes
0answers
17 views

Uploaded images deleted on save in Drupal

A certain content-type in my installation does not save images in it's gallery anymore. The image is being uploaded, registered in file_managed with status 0, and stored in sites/default/files. On ...
0
votes
0answers
14 views

Field groups not showing when nested using field type HTML

I'm using Drupal 7.34, Profile2 module, Field groups 7.x-1.4. When building a form with nested field groups and using the fieldset field type, my form renders properly. When I configure my form like ...
0
votes
1answer
8 views

field collection items are not in panels

Im trying to use Panels to display a Field collection but it looks like it is not in the overlay (see screenshot). How can I display the field collection in my panels?
0
votes
1answer
13 views

Views Bulk Operations with Field Collection Item tokens

I am trying to modify the values of one field in all instances of a field collection type. I have a view listing all field collection items, that I want and an operation field with modify entity. ...
0
votes
2answers
27 views

Code review - Reading a field collection

I am trying to read a field collection and build an array in PHP. The array I want to build goes like this:(it's in JS notation but you can easily imagine the equivalent in PHP) highlights = [ ...
0
votes
1answer
13 views

How to display field collection fields in tabs on add another item button?

I have a content type which has a multivalued field collection field. In this field I have a set of field collection items. In field collection I have put the fields in horizontal tabs. But the ...
0
votes
0answers
20 views

7- Field collection fields are not showing in registration profile

I'm trying to create a registration profile using Profile 2, in this profile most of all fields are field collections. The problem is, when I try to create account for this profile, none of them are ...
0
votes
1answer
35 views

Reading nested field collections

I have a field collection called field_sections that has inside it it 2 fields: field_section_title (just plain text field) field_menu_item(field collection with 4 fields) field_menu_item has 4 ...
0
votes
2answers
26 views

How to search in field collection item?

I want the Drupal Default Search to look into Field Collection items. I currently have a field_resources collection with a field_description and a field_file, and the search should be looking into ...
0
votes
0answers
16 views

Entity translation, field collection and views

I have entity translation and field collection working well together (the field collection itself is translatable, but the fields within aren't). I'm now trying to create a view of field collections ...
0
votes
3answers
57 views

Display field inputs side-by-side in node edit form

I have quite a few Field Collections on my node edit form that each have three text input boxes. By default drupal displays them one on top of the other which makes for a very long page: Ideally ...
0
votes
1answer
20 views

Display a view inside a field collection with eva

I'm trying to display a view inside a field collection via EVA. I've created the view which accepts the nid of the containing content type as the context argument and all is good in that the view ...
2
votes
1answer
20 views

How to unset _none option inside field collection?

Normally, in a node form you'ld unset the _none option like so: function MYMODULE_form_FORM_ID_alter(&$form, &$form_state, $form_id) { ...
0
votes
1answer
24 views

View with relationship in field collection

I have a contentype „roomtype“ with the fields „title“, „image“ and „text“. And i have a contenttype called „pricelist“ containing a multivalue fieldcollection which contains the fields ...
0
votes
0answers
22 views

How to reference a field collection item with computed field module?

I would like to do a simple equation with computed fields that multiplies sales tax from a total generated from the field collection module.. Below is working code that works referencing a Drupal ...
0
votes
1answer
30 views

Remove order from Field Collection set in form

I am using the Field Collection and Field Collection Fieldset modules to group a set of elements in my form. But what i see in the form is an Order column for the fieldset items, which i would like to ...
0
votes
0answers
79 views

Unable to set field collection field value on form validation

The question might look similar to How to form_alter fields attached to an unlimited field collection? but I am more concerned about "values not saved after custom validation" I have a field ...
0
votes
0answers
25 views

How can I change view data after the query is executed but before it's output?

I tried hook_views_pre_render but it's not acting as I would have expected. What I'm doing is taking the view data after it has been executed, looking at the result, and then changing the result. ...
0
votes
0answers
37 views

Field Collection Node Clone for translating nodes?

I have a website with lots of field collections. When cloning a node, this module helps clone field collections aswell, so that they don't reference the same collection. Is there anything similar for ...
0
votes
0answers
24 views

Field Collection import

I've created Award field which is a type of field collection in user entity. Where user will select the awards they received. I want to import the set of users. Am using User Import Framework module ...
0
votes
0answers
47 views

Custom widget for field collection with multiple values

I need to create a custom field widget for a field collection. My field collection is called Article and has the fields "Title", "Summary" and "Description". My content type has the field of type ...
1
vote
1answer
194 views

Jquery breaks on ajax run

I am using field collection & availaibility calendar module, I added a field collection in a content type as a field with unlimited option in field edit. now i have added a availability calendar ...
-1
votes
1answer
23 views

Can hook_field_extra_fields be used with field collections?

I have a field collection view that I have to manipulate some data on before it gets displayed, so I was going to use hook_field_extra_fields with the extrafield_views_integration module. This worked ...
0
votes
0answers
14 views

Field Collection + Views, can print one of the fields but not the other?

I have a field collection with two fields. I've created a view and have added the field collection as a relationship so that I can output individual fields. I can output one field but not the other, ...
0
votes
1answer
51 views

How to set a value on a field collection using entity metadata wrapper

I'm trying to programmatically set a value on a field collection item attached to the user entity. The field collection field in question is titled, "field_user_location". I initially had this ...
-1
votes
1answer
62 views

Field collection - Delete “Remove button” on line

I need to delete the "Remove button" on every edit field collection for specific role users. I have 3 roles (Admin, Project, Test). Just Admin and project can see the "delete" button and "add" button ...
0
votes
1answer
23 views

Field depandancy module can not work for textfield in field collection

I am using field dependency module for use only 1 field I have 2 fields text and image user can use only 1 field text or image if user can select text field other will be hidden or invisible same ...
2
votes
2answers
119 views

Entity creation-form: Prepopulate all existing entity-references of a field collection

I have a content-type seasonal_prices with field-collection containing an entity reference field (referencing content-type room) and a number field; the field-collection is multi-value with unlimited ...
0
votes
1answer
29 views

Clone several nodes

I'm searching a module to clone several nodes automatically when i create a project node type. To explain better : When i create a new node of Project type for exemple, i need to clone some nodes and ...
2
votes
1answer
293 views

entitymetadawrapper with field collection multi value

How can I save multiple values in a multi-value field collection using EntityMetadataWrapper ? Here's some of my code $field_collection = entity_create('field_collection_item', array('field_name' ...
1
vote
1answer
136 views

How to render a field collection?

How can I properly render a field collection ? Is there any specific function for that ? I tried field_view_field but it does not output children fields. My field collection is attached to a line ...
1
vote
3answers
126 views

Can I access Node ID of Parent Node of Field Collection Field in field-collection-item--<<name>>.tpl.php

I am just hoping to get Node ID of parent node in field-collection-item--name.tpl.php So if my parent node name is mypage in which I have child fields of field-collection-item--name.tpl.php, I just ...
0
votes
1answer
96 views

Migrating a field collection with a field that has multiple values

I have a field collection migration that is taking nodes of type Map List from a D6 site which have two fields, a title, and a node reference to entity of type Venue. There anywhere between 1-10 node ...
1
vote
0answers
329 views

Warning: array_flip(): Can only flip STRING and INTEGER values!

I have a custom module that hooks into a commerce extension module the function splits a payment for a product and splits it to beneficiaries who helped create the product. I use user_referance ...
1
vote
0answers
33 views

views relationship to field collection field, gives no result for non-administrators

Using a view of field collection items, A relationship to a field collection field works fine for administrators but for other roles like authenticated users or anonymous users, the complete view is ...
1
vote
1answer
113 views

Field Collection module Ajax error

I'm utilizing the Field Collection module to allow me to associate objects of one content type (say, Authors) with another content type (say, Books). When viewing the Edit page for one of my specific ...
1
vote
2answers
189 views

How to add another field collection instances on Add Form page load programatically

I have one field collection with unlimited values in Commerce Product Add form. After performing some action, When user redirects to Add Product form, based on some predefined values in session, I ...
0
votes
1answer
17 views

Running an “is all of” filter on a field collection [closed]

I'm currently working with a field collection lets call it Certificates. Certificates contains the following fields... Certificate Type, Certificate Number, Expiration Date, Etc. I have a content type ...
1
vote
2answers
64 views

Simulating TYPO3-Template-Engine [closed]

For my next drupal project I need more flexibility in content-styling, than the standard approach allows. I need to be able to build the content-body for every single node from different elements. ...
0
votes
1answer
47 views

How to alter a form of content-type to prepopulate FieldCollection of EntityReference fields?

I have three content types : Classroom (some fields) Student (some fields and one EntityReference to Classroom) KMDone (some fields and a FieldCollection) KMDone is a content type which contains : ...
0
votes
0answers
39 views

How do i print field collections which are a field of another field collection in node.tpl.php files?

I am using the following code to embed a field collection inside node.tpl.php files: <?php global $base_url; $wrapper = entity_metadata_wrapper('node', $node); $formtype = field_get_items('node', ...
0
votes
0answers
33 views

How to order elements of a multiple collection field?

My custom module allows to add and set collection fields of some content. I would like to order these fields like this: My actual structure data after one ...
0
votes
1answer
77 views

How to get the highest value of a specific field in a multivalue field collection

How to get the highest value of a specific field in a multivalue field collection, USING PHP? This is about displaying the right discount for a marketplace product. There is a node type Product with ...
0
votes
0answers
105 views

How to create a Rules action set to calculate a sum of integers in a Field Collection?

I'm having a Field Collection 'My List' with two fields: 'Amount' (integer) and 'Date' (date). I often count the 'Amount' items with Rules like this: Add a variable: Parameter: Type: Integer, Value: ...
0
votes
1answer
87 views

Field Relation Between Content Types and Some Questions

I have two content types (Movies and Actors), both with picture and name fields. In Movies I have a field collection with two fields: name and character. This name field is a node reference to Actors ...
0
votes
1answer
58 views

What is the preferred way to delete large amount of data from a Drupal site?

We have a client site that currently has a very, very large data set in Drupal. We are working on generating a 'stripped' copy of the database to be used for testing new code by eliminating the bulk ...
1
vote
2answers
239 views

Turn off revisions for content types that contain certain types of fields (e.g. Field Collection)

The Field Collection module does not support revisions. Yes there are lots of patches which are still under review. But what I want to do is create a module that on the node edit screen, queries the ...
0
votes
1answer
730 views

Entity metadata wrapper, get field collection in field collection

I want to get (and to set after) the value of a field collection in a field collection (multidimensional field content). This is my code : // The node is a custom content. // I get the list of ...