Drupal 7 Field Collection Module - Daily Dose of Drupal Episode 59

preview_player
Показать описание
The Drupal 7 Field Collection module allows fields to be grouped together and then dynamically added to another content type. In this example, we go through how to use the Drupal 7 Field Collection module to add songs (with song title, and song artist fields) to a Drupal content type called Playlist. This example is based on the documentation of the Drupal 7 Field Collection module.

In this episode you will learn:

- How the Drupal Field Collection module can be used to group collections of fields together to be added to another content type
- How the Drupal Field Collection module can be used as an embedded form within a node edit page
- A few real use case examples of where this module can be useful

Links:
Рекомендации по теме
Комментарии
Автор

Mind = Blown!

Never heard of this module! LOLs @ field collection inside a field collection. Field collectionception.

ZisisKoukoumakis
Автор

This is great, this is exactly what I needed, Thank you! 

kemmien
Автор

The entity reference module relates two different types of entities together. So in order to achieve the same thing here, I would need to create multiple node types and reference them together. This allows that to be accomplished in one simple interface. It also appears that they have closer Drupal.org install numbers than I would have guessed. While I agree the entity reference module is a little bit of a safer, I think we will see the Field Collection module around in Drupal 8.


codekaratetutorials
Автор

I would think the taxonomy reference field should be available from within the field collections field management page. Is it not showing up like it normally does on the typical "Manage Fields" page for a content type?

As far as importing thousands of field collections content, that could be tricky. Even if you could import everything with the Feeds module, you will need to figure out how to reference the collection to another entity.

Try a search for "Field collection add feeds integration"

codekaratetutorials
Автор

Great tutorials Shane.
I have a question regarding one specific issue I'm facing atm. I created a content type and I used a 'field collection' as a field to that content type. To display the data I created a View but, I'm unable to add exposed filters to the fields that belong to that 'field collection' since I only get the nid for that collection but not references to the fields within it.
Any suggestion or idea is welcome since this is killing me and can't move forward.
Greetings,
Eduardo

avlisodraude
Автор

Hi thank you for this tutorial. a further question: (1) Are you able to add existing songs to another playlist? and secondly (2) i want to be able to add songs by simply ticking some check boxes, or via a drop down menu. is this possible?

pging
Автор

Hi Shane,
Do you know of any module/way to import Field Collection data along with the parent node in one run. Or if not, how to import the Field collection afterwards.
Greetings,
Eduardo

avlisodraude
Автор

I Shane, i don't understand if this module works only in the back end or also in the front end. Is this the right module to show a horizontal tab content for the final user?
Thanks!

plotubeq