Tagged Questions

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
3answers
27 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
13 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
17 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
0answers
19 views

Field collection and jQuery LENGTH [closed]

I have a problem with a field collection and the attribute "Length" in jQuery. I have a field collection with 4 rows and when i wanna add a new row I got the error : Uncaught TypeError: Cannot ...
0
votes
1answer
15 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
14 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
21 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
6 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
40 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
22 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
26 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
20 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
35 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
117 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
19 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
1answer
33 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
53 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
17 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
113 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
26 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
220 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
103 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
91 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
78 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
242 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
82 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
121 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
15 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
59 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
42 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
30 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
30 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
73 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
75 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
76 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
52 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
160 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
506 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
59 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
581 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
100 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
50 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
113 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
16 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
96 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
73 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
83 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
131 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 ...