Since you are have already worked on formatting filed collection view,Could you also think about using Views Accordionfor multiple field collection like this like this example :http://jqueryui.com/demos/accordion/

Comments

kaizerking’s picture

Title: Views accordion fiel collections » Views accordion field collections
g089h515r806’s picture

maybe it works with views accordion, I am not sure, try it please.

kappaluppa’s picture

Just wanted to mention that I have tried Field Collection Views with views accordion and have been able to make it work.

I had a bit of trouble figuring out how all the parts fit together, so I'm adding my steps here in case someone else needs more clarification.

I created a field collection for FAQs to be included in a node. For the collection I had two fields "Question" & "Answer". The field collection is called FAQs.
Added the FAQs field collection to a content type
Cloned the default "field collection view" view and renamed it "FAQ field collection view". Changed the type from page to block.
Added the "Question" and "Answer" fields to the block in the cloned view. View name is "faqs_field_collection_view". Display ID is "block_1"
Set the view format to Views Accordion. Used the Question field as a group header, set it to Use the group header as the Accordion header, excluded the "Question" field from display in the Configure Field dialog box.
Went back to the Manage Display tab of the content type.
Clicked on the cog next to the FAQs field.
In the format settings there is a place to enter the view name and the display id. Add those. Saved. Done!

No problems so far...

Thanks for the module!

jdjeet’s picture

@ kappaluppa,
I am looking for a similar functionality. I saw you have done it. But I could not get any default "field collection view" view.

Neither I see an option to add a view name in Manage Display tab of Content type.

Could you please elaborate what I should do.

I am using Drupal 7.13 with Field collection and Views Accordion.

Thanks in advance.

kaizerking’s picture

1.if you have not got filed collection filed view format in manage display, then check you installation, where are you looking for it, look for "view-filedcollection items in profile type->resume->manage display->format
2. if you got the format, then select it and then clcik on the small gear you will see a.name b. display id c. add link
3. dont chnage any thing there
4. go to structure ->views
5.you will see a view with name "field collection view"
6. clone the view
7.go to newly created view CREATE A PAGE- DO NOT DISTURB The MASTER and add what ever fields you want DO NOT DELETE ANY FIELD.the add fields list will contain all the fields for what ever filed collections you have selected in profile type. select fields you want and create view
8. note the view name and page ID, page id you can see in the bottom browser status bar if you hover your mouse pointer on button"page'.
9. note these two details and go back to profile type->resume->manage display->format put the details, in view name ->the view name you have created, and the page ID you have noted.
and save.then you will get the format

jdjeet’s picture

Thanks,
I saw your reply later... But I did the same after some R&D and some tutorial.

Patribus’s picture

HEllo,

did some one try to integrate the view in a panels pane?

I do not manage to get the respective field collection ID passed to the view through the pane context.

Some idea?

Cheers

Kasha Linka’s picture

The field collection views is a very helpful module and I have it working on my development site. Is there a way to make the Edit/Delete/Add links only visible if you have permission to edit content? I don't want anonymous visitors to see those links. Thanks for your assistance.

kaizerking’s picture

@Kasha Linka, the field collection field is not having its own page. it is always attached to a host hence it is called "field", what ever the permissions available for the host are available for the field collection, and therefore permissions can't be managed at field collection level. so anonymous users can never see those links unless they are the authors of the host entity they are attached to or the permission are available to anonymous users to view/edit host entity. that is what i understand, in your case, i do not understand how anonymous users are able to see. if they don't have permissions on host entity or content type.
try Field Permissions moduel may be it will be useful for you

dineshw’s picture

Issue summary: View changes

Awesome steps given by by @kaizerking at #3

It works flaw less.

I even used Entity reference on Basic Page to Accordion Content Type and used Entity View to render node by contextual filter on entity referenced field.
Hence You can also Attach Accordions to Basic Pages or any other node using Entity References, Views Field Collection, Views :)

dineshw’s picture