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
1answer
10 views

Migrating nodes with image- and textfield to file-entity with image and description

What is the approach to convert existing nodes consisting of a multivalue field-collection-field (containing an image-field and a textarea-field as caption) to the file-entity which the media module ...
0
votes
0answers
10 views

Trying to sort my Field Collection nodes through Tags

I am so desperate to find some help here. What I did is:- For one of my requirement, I created Field Collection content type which has a field called Tag among other fields. This is shown below:- ...
2
votes
1answer
27 views

How to check if field in Field Collection is required?

I'm running into a problem of programmatically checking fields in a field collection. What I want to do is loop through all fields within a field collection and check which ones are required. I've ...
1
vote
0answers
28 views

How to get/provide tpl file of editing a field collection?

I want to theme a my collection field on the edit page. I have several fields in one collection and that collection gets all the height of the screen. Though, I want the values of the collection ...
1
vote
1answer
27 views

Programmatically printing from field_collection array

Is there any simple way to print a certain number of elements from a field collection? Say I have an array of 8 elements and want to just print 4 at the top of a page; then, print the other 4 at the ...
1
vote
1answer
23 views

Unique field value per multivalued field collection

Field collection Config (multi value) Field1---Name -Autocomplete (single value) (Entity Reference) Field2---Score - Computed field. Example Values for field collections Field collection [0] ...
-1
votes
1answer
16 views

Custom module: working with nodes/field_collections/entities [closed]

I have build a custom module to upload an image where you can drag & drop icons on. This happens with jQuery UI and I have integrated it with Drupal. Now I create a field_collection for every icon ...
0
votes
1answer
20 views

Views field rearrange

I am using Field group module for creating fieldset in content type. Can I have similar features while rearranging the fields selected in views.
1
vote
0answers
40 views

Saving a date field with an 'all day' date value programmatically

I am trying to set the value of a date field to be 'all day' - but the format is being saved incorrectly. The code where the value is being set: $kw = ...
0
votes
0answers
22 views

How do I print an image in field collections (for custom theme)

When I try and print an image in my custom field template using field collections module, I only get the word "array" instead of an image. This is Drupal 7 btw. Following this great tutorial ...
0
votes
0answers
20 views

Field Collection alternative ? Need Sub fields searchable through Search API (Drupal 7)

I am hoping to find an alternative to Field Collection module. The problem is that I want to search (I am using Search API + Views) the sub fields in the Field Collection. As an example, If I have a ...
0
votes
1answer
21 views

Show Filename of uploaded files in “Field Collection” Field

I have a requirement where I have to show files uploaded within a category.. I used Field Collection Module of Drupal for it and made fields in the following way, where each category is a field ...
0
votes
2answers
37 views

filtering field collection in a vew

I have several node types (merchandise vendor, food vendor, festival vendor) which all have an embedded field collection called equipment, which can contain multiple values. The field collection has a ...
0
votes
0answers
32 views

How to use field collection items in a chart?

My users have a field collection with 2 items: 'Punten' (integer) and 'Datum' (text). I'd like to create a line graph of the 'Punten' with the Charts module and use 'Datum' as labels. This is my ...
1
vote
1answer
44 views

Using #states with field collection

I'm trying to use #states in a unlimited field collection (using the field collection module). I'm adding this functionality to a node add form so am altering form elements using hook_form_alter. I ...
0
votes
0answers
24 views

Reference Field Collection Item in Display Suite Code Field

I have a field collection called field_cast. In that collection, I have a Boolean field called field_equity_member. I also have a text field called field_actor_name. If the field_equity_member is ...
0
votes
0answers
24 views

Whats the proper way to preprocess field collection items to add first and last class names?

How to add 'first' and 'last' class names in addtion to 'odd'/ 'even' for field collection items in preprocess functions?
0
votes
0answers
8 views

Field collection field linking to node it appears on in a view mode of that node

I have a nodetype with a view mode, "higlight". This is used when it appears on a particular page. The highlight view mode outputs a rendered entity: a field collection called "meta". "Meta" has a ...
0
votes
0answers
34 views

Required Fields with unlimited field collection items not working [duplicate]

I have created field collection with unlimited field using Field collection module. There are some required filed and I assigned it to one of my content type. but it not validating the required field ...
0
votes
0answers
17 views

Embedding of location field with field collections not work?

i embedded location field with field collection module. but i cant get city list that based on country field. as per below screenshot: I thing there is some ajax problem but it will not work only ...
1
vote
0answers
27 views

Identifying and recording fields that have been updated

I need to keep a record of fields that have been updated since some arbitrary point in time. My initial approach was to use hook_entity_update() and compare the fields in the updated entity with ...
1
vote
1answer
32 views

What to name field collection theme file?

There are several articles here that address theming field collections but none that specifically cover the naming conventions required to actually get them recognized by Drupal. ...
0
votes
2answers
216 views

multiple instances of a field collection on single content type

I have a content type where I would like to use a field collection to group some fields (radio buttons and textfield). The problem is there are many of these on the content type with only the label ...
1
vote
0answers
25 views

Display Suite layouts not working for field collections Edit\Add forms

Even though I have the Display Suite Forms module enabled and applied a layout to this specific field collection, it does nothing for the edit/add forms. If I apply a layout using manage display it ...
0
votes
2answers
34 views

delete a specific element within field collection programmatically

this is driving me crazy it just sounds simple but I cannot find the answer!! help please!! look I have a field collection in a content type called 'field_collection_mine' how you now while creating ...
0
votes
0answers
36 views

Node title is not updated when saving the source node,when field collection data exist

The steps I follow are: 1) Create a new node in the source language, English and enter data to its field collection fields 2) Go to the node and change the node title. Click save. The node title is ...
0
votes
0answers
65 views

Drupal 7 : Field Collection fields not showing field values in edit form

After creating content in drupal 7 , when i open edit form , field collection fields are shown as empty , but on the node view page , values are shown
1
vote
1answer
17 views

Is it possible to request multiple nodes in one request using Services?

I would like to be able to make one request to the Services module node resource and have it return more than one node in the response. Is this possible?
2
votes
1answer
130 views

How to render a field collection without default divs?

I want to output a field collection using dl, dt and dd tags. The collection has two fields - field_heading and field_text. I want each field_heading to be a dt, each field_text to be a dd and to wrap ...
0
votes
1answer
74 views

colorbox custom caption via field collection

I want to have a content type with a field collection of an image and a text field. The image is to be displayed via Colorbox, the text field is to be used as the caption for the image. I am sure I ...
0
votes
0answers
75 views

How do I programmatically add field collections instances to a form?

I have a form with field collections; on form validation I need to add instances of that field collection type. For example, field collection user_data has fields first_name, Last_name; when someone ...
1
vote
1answer
42 views

Unsetting a field before hook_form_alter

I have a field collection with two entity reference fields that I keep hidden on a node creation form. The reference fields in the hidden field collection are slowing down the page load time. I need ...
0
votes
0answers
17 views

Views Field Collection Formatter on Default shows nothing

How do I get Field Collections to show in Views with the Default Formatter? When I click on the Views Field for the Field Collection, it gives me the option to select the formatter, and the options ...
0
votes
2answers
41 views

Field Collection Views and Blocks

I've assembled a content type with a Field Collection (image, text and link). I installed the Field Collection Views module and duplicated the view it came with. I added a block display to the view ...
0
votes
0answers
32 views

D7: how to model hierarchical metadata?

I'm looking to model hierarchical metadata (not hierarchical vocabulary/taxonomies). I need a UI for users to create and modify arbitrarily nested content: something akin to XML, but integrated with ...
0
votes
1answer
28 views

Architecture advice for site with lessons that belong to courses

I need to build out a site that features courses and lessons, each defined as a content type. I currently have the site running with lessons linked to courses using entity reference (entity reference ...
0
votes
0answers
67 views

Which hook_node function should I implement to set the value for a field collection element?

Or do I have to set it somewhere else? The context is that I am using an ajax callback function in a payment content type to set the values of a select list based on the value of another select ...
1
vote
1answer
74 views

Improving performance with Field Collections?

I'm using using entity reference, field collection , and field collection table modules on a site that features "courses" and "lessons" as content types. A field collection with unlimited values is ...
2
votes
2answers
65 views

Field Collection Value field is not deleting correctly(using programmatically)

I have installed a field collection module in my D7 site. There is a multifield(unlimited) field collection with 3 field collection items. I need to delete the field collection programatically. i use ...
0
votes
0answers
35 views

Drag and Drop Fields from Field Collection into any other Field of that node by Field Type?

Is there anything out there like this? It would be better if this could all be done within 1 node for instance. Like with using Field Collections Module, we could create multiple body fields that ...
0
votes
1answer
25 views

Alter fields on add more

I'm used Field collection to add content type as field with unlimited but i want to alter this form fields for adding #autocomplete_path on each field so i'm added the autocomplete for the first ...
2
votes
1answer
60 views

field collection v seperate content types

For my property management admin application I want to assign charges of different types to the properties being managed (e.g. service charge, utilities bill, maintenance costs etc.). So each property ...
0
votes
1answer
54 views

Field Collections not displaying in Content Template

I'm using Content Templates (Contemplate) module to style a node display for a content type that uses Field Collections. When I view the node's display page before changing anything in the Content ...
0
votes
0answers
24 views

Query a field collection for a null value

In Drupal 7, I am trying to query a field collection for a null value (no references have been assigned) using the Entity API, but it appears to ignore the entity condition and returns all results. ...
1
vote
1answer
211 views

Need to export multiple fields collections via views data export in XML

I have my site set up to import CSVs and manual entry and exporting the key information into an XML feed/File using views data export. I have a problem when I need to add a group of fields. The user ...
1
vote
0answers
87 views

Create Node contains Field collection with restws + services

I am trying to create a node with RESTFULL api using restws and services modules (latest versions) on Druapl 7 - openpublish destro. the node contains a Field collection (images field collection ...
0
votes
1answer
73 views

How can the items in a field collection view be restricted to those of its containing entity?

I have an entity type with a field collection that I want to display as table within the main entity display. I have created the view as a block view and added it as a block field using Display Suite. ...
1
vote
1answer
116 views

Field collection: create an field collection item field programmatically

first of all, English is not my native language so sorry if this reads bad. I'm trying to program a field collection with field collection item fields like the code as given by rbruhn here: ...
0
votes
1answer
79 views

Disable sticky table headers for field collection?

I'm using a field collection on my node form and sticky table headers comes baked in with no way to disable it (that I can find, anyway). How do I disable sticky table headers? Preferably with ...
0
votes
0answers
35 views

Some field collection items not editable by admin

My Drupal site has developed a very strange problem. For some reason I cannot edit field collection items of certain sites on their own edit URL, but others work fine. For example: ...