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

0
votes
0answers
5 views

Field Collection in Ubercart Product

I need to add a field collection On a product in Ubercart. My product is a event and i need to give the possibilty of adding "attendee" to this event. Exemple: Mr X buy a access to a seminar, for ...
0
votes
0answers
19 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
18 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
10 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
13 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
23 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
46 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 ...
0
votes
0answers
10 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
12 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
0answers
15 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
43 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
0answers
11 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
94 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
25 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 ...
0
votes
0answers
14 views

Field collection i18n issue [on hold]

I Have a field collection called ProductPicture. I Have a ContentType Called Category I Have an Content Type "Product" with a reference on field_collection (ProductPicture). I can add for one ...
2
votes
1answer
136 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
74 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
2answers
58 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
57 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 ...
0
votes
0answers
140 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
30 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
51 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
88 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
14 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
57 views

Simulating TYPO3-Template-Engine [on hold]

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
34 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
26 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
29 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
57 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
52 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
67 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
51 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
96 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
279 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 ...
1
vote
2answers
44 views

Updated an empty field collection in Drupal7

New to Drupal and I'm assuming the answer is simple, I've looked through the test suites etc. and still missing the point it seems. I have a node with a field collection (field_theatre_date_set) that ...
7
votes
3answers
449 views

Field Collection vs Entity Reference

How is field collection an advantage? You can do the same thing with a new content type pointing to the parent with an Entity Reference. Maybe someone can break down some situations where each one ...
0
votes
2answers
89 views

Solution to migrate a field collection

My requirement is to migrate content nodes in xml format to drupal 7 content type fields.The xml contains a node which has to be field collection in drupal.I know how to migrate field which are enity ...
1
vote
1answer
49 views

Modify and add of unlimited collection field

I have a content who contains an unlimited collection field. Via a custom module, how can I get and set the informations which are in field collection in the content (nid) ? I have read the api ...
0
votes
1answer
90 views

Field Collection Major Error! Help Needed!

Here what my screen looks like when I try to add new field collection item. http://i58.tinypic.com/hrf11d.jpg Then I got this message in Chrome when going back to the previous page in browser: ...
0
votes
1answer
15 views

How to delete all but the current revision from the field_collection_item_revision table?

I have a Drupal 7.24 Website making heavy use of field collections. The field_collection_item_revision keeps getting bigger and bigger (9'000'000 rows) and only 200'000 entries are in ...
0
votes
1answer
67 views

How to form_alter fields attached to an unlimited field collection?

Here are 2 unsuccessful experiments I've done: <?php /** * My first attempt with implementing hook_form_alter. */ function MYMODULE_form_alter(&$form, &$form_state, $form_id) { switch ...
0
votes
0answers
56 views

How can I filter nested taxonomy terms with field collections?

I have a content type Recipe that has a collection field called Ingredient. Each Ingredient collection field item has a hierarchical taxonomy term called Food. For example the Food taxonomy ...
1
vote
1answer
62 views

Create field collection item in drupal 7

I am trying to dynamically create a field collection for a node. Field collection item (field_markers) is used to create a point or a polygon for a map content type. During debugging I found that my ...
0
votes
0answers
108 views

Add classes to Field collection Items

I want to add classes to the Field collection items (multiple value field), for a stored value earlier generated by HOOK_preprocess_node. What is path / array to get to the classes_array for the ...
0
votes
0answers
55 views

How to access multiple values of field collection in node.tpl?

I have field collection for one of my content type. The fields in field collection are Title Body Image The field collection can have many values at a time. I tried to get the values using entity ...
0
votes
0answers
10 views

Update fieldcollection on node save/update

I have a rather complex setup here. A node contains some fieldcollections as well as some custom form elements. On save, the values from the custom form elements, should end up in the ...
0
votes
1answer
144 views

Render field collection multiple times on node.tpl.php

I have created a custom view mode for field collections with this code: /** * Implements hook_entity_info_alter(). */ function view_modes_entity_info_alter(&$entity_info) { ...
0
votes
0answers
31 views

Save field collection item programmatically

I'm trying to set the postal code for a user. The postal code is a field of the Address Field module and the address field is in a field collection. I can read the postal code value using this: ...
0
votes
1answer
160 views

Field collections data not being saved

I am working on a website which has many Entity forms and some of the Entity form has field collection with few fields in it and it allows multiple items "Unlimited". When you save the node, the data ...
0
votes
1answer
53 views

How to print node embed field in field collection

In one of my content type i am using field collection(Title, Image, Body). I am using node embed to embed node titles of certain content type in one of my content type. The issue i am facing is that ...