Posted by droath on October 14, 2011 at 3:05am
8 followers
| Project: | Field collection |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
If you configure the field-collection module as a hidden field type, and use views to display the field-collection data. You'll find out that you don't have a way for editing and deleting field-collection data.
So if we expose field-collection "operational links" to views, then we'll be able to display that field in our view. Then the administrative staff can manage the field-collection data. Thoughts?
Comments
#1
First time working with the Views API. :) Suggestions welcomed...
#2
I think each link should be exposed on its own. Then we should make use of the recently added views_handler_field_entity to ensure we are getting real entity objects.
Also, we might want to look into exposing them automatically with the entity api? For that we would have to improve it to allow modules to specify the edit and delete urls somehow.
#3
#1: field_collection_expose_operational_links_to_views_1309332-1.patch queued for re-testing.
#4
The last submitted patch, field_collection_expose_operational_links_to_views_1309332-1.patch, failed testing.
#5
Here's a quick and dirty re-roll of #1 that works for me against latest dev.
It would be even awesomer if we could somehow make this work with views' Global: Contextual Links handler.
#6
OK, here's a much better patch, imo
#1333870-14: Add links to entity views integration
In conjunction with this patch: #1638074: views_handler_field_url is not compatible with views_handler_field_contextual_links, these urls will work with gracefully with contextual links. (as it stands, they'll still work, but you'll have to play with rewriting the output of the field).
#7
The last submitted patch, field_collection_expose_operational_links_to_views_1309332-1.patch, failed testing.
#8
... and the patch
#9
The last submitted patch, field_collection-view_urls-1309332-5.patch, failed testing.
#10
fargle bargle testbot
#11
The last submitted patch, field_collection-view_urls-1309332-10.patch, failed testing.
#12
this is a good patch.
i give up.
#13
Hi guys!
First of all I want to thank fago for this beautiful module and thank you guys for your patches!
Here is updated patch:
views_handler_field_entityhandler as fago proposed.viewandaddlinks. I think they are unnecessary here.