Closed (outdated)
Project:
Field Collection Views
Version:
7.x-1.0-beta1
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2012 at 21:52 UTC
Updated:
6 May 2024 at 06:53 UTC
Jump to comment: Most recent
Comments
Comment #1
g089h515r806 commentedCurrently,this module does not support this feature.
This module only provide a formmatter for field collection using views, and add a little more views support for field collection.
Field collection does not support views very well, maybe it will add more views support.
Comment #2
marblegravy commentedh.arefmanesh, did you ever figure out a way to make this work? It's got to be possible somehow, even if this module doesn't support it?
Comment #3
anssary commenteddid any one figure this out?
i wounder how can such an important module (http://drupal.org/project/field_collection_views) misses out such feature : (Host Entity ID) in (Contextual Filters)???
+1
Comment #4
g089h515r806 commentedfield_collection already provide this feature,
Comment #5
g089h515r806 commentedfield_collection already provide this feature,
Comment #6
SergeyR commentedsorry
but i cannot find it too (((
please advice
Comment #7
gargsuchi commentedHi I was able to do this using the steps below:
1. create a view of type field collection
2. Add Relationship - Field collection item: Entity with the Photos (field_photos) (u will see something else instead of photos)
3. Add contextual filter - Content: Nid ((field_photos) Content: Nid for me)
and you are done.
Hope this helps.
Comment #8
h.arefmanesh commentedIt's works for me.
I could solve my problem by using relationship.
Comment #9
gjones commentedAwesome thanks garguschi, I was having difficulty trying to figure that one out!
Comment #10
zcrow commentedThanks for that! I spent hours trying to figure it out.
I was missing a couple details from the above example so perhaps this might help others.
1. Install field collection views
2. clone it for your purposes
3. Add relationship = Field collection item: Entity with the field_collection_name
4. Add contextual filter = Content: NID; relationship = field_collection_name
5. under When the Filter is Not Available choose Provide default value = Content ID from URL
Comment #11
c-logemannOk, the described solution seems to work with one field collection. But what about a view with field collections items from different fields all related to one host entity?
In my case I have a node type with more than one field collection nested. I choose different text fields to get them separated in rules for special reaction on the creation of this items. But they all have the same date field. Now my customer wishes a view where three of the field collection types are shown in one list ordered by the date field. This sounds easy but needs the a contextual filter by Host ID. This seems not to work if this is based on a relationship as described above. Or is it possible to get a kind of OR-contextual filter?
To use separate field collections fields in the node is very helpful in my case for special permissions in a complex workflow. I hope I didn't have to leave the views way with custom code for SQL Queries and so on.
Comment #12
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks