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
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
80 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
23 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
7 views

Field collection i18n issue

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
94 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
62 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
39 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
40 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
64 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
29 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
38 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
71 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
13 views

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

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
56 views

Simulating TYPO3-Template-Engine

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
31 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
21 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
23 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
47 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
42 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
61 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
47 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
53 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
126 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
37 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
324 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
74 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
65 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
14 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
50 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
36 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
58 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
73 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
45 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
95 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
28 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
121 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
46 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 ...
0
votes
0answers
14 views

How to reset a Field Collection to its basic, unpopulated state via hook_form_alter()

I am doing a form alter on a node edit form with a Field Collection which may have been previously populated. I want to discard any previous data entered into the fields within the collection so it ...
0
votes
0answers
38 views

how can I hide field collection item

I know I can hide form field element by $form['element']['#attributes']['style'][] = 'display:none;'; or hide($form['element']); but when I try to hide field collection element by ...
0
votes
0answers
27 views

Drupal Content API: show actual values of field collections

I am currently a maintaining a system, and I'm trying to figure out how to expose certain fields using Content API. I have already setup the Content API module, and is successfully returning thru ...
2
votes
1answer
130 views

How do you populate an image field in a field collection programmatically?

I'm trying to do a large import that's more complex than feeds can play nicely with, so I'm in the process of writing a custom import script. Everything works except loading images that are associated ...
0
votes
1answer
60 views

Field collection item not visible to anonymous user

I have a field collection, 'related content', that displays inside the 'page' content type tpl. It is a 'field' in the page content type. It works perfectly fine while logged in as admin, but cannot ...
0
votes
0answers
14 views

set permissions on an entity as though it were a node

I am using the Field Collection module to create entities for other nodes. I would like to administer the creation/editing/viewing permissions for these entities using the permissions page in the ...
0
votes
0answers
18 views

Field Collection - prevent one user from change values set by another user

I have added an (unlimited) field collection to on of my content types (LISTS) which contains several fields (POINTS). I am looking for a way to prevent users from altering or deleting instances of ...
0
votes
1answer
39 views

Unlimited value fields numbered

Is it possible to show a numbered output to an unlimited value field (in the input form rather than the display). Basically I have a field collection and I'd like to show by the side of each one ...
0
votes
1answer
98 views

Hiding a field title label of a field collections field?

I have created several fields using the field collection module, but I cannot hide one of the field labels (within a collection). I've tried it in the UI and I've tried hiding it programmatically with ...
1
vote
1answer
112 views

How can I delete all field collection revisions?

I want to delete all field collection revisions of a specific field. I found deleteRevision for this job, but I don't know how to use it. (I couldn't find any example of it.) Anybody know how ...
0
votes
1answer
40 views

Create user with field collections programmatically

This is what I use to create the user: $new_user = array( 'name' => $form_state['values']['email'], 'status' => 1, 'access' => REQUEST_TIME, 'roles' => ...