Closed (duplicate)
Project:
Field collection
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2011 at 03:05 UTC
Updated:
13 Oct 2015 at 17:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
droath commentedFirst time working with the Views API. :) Suggestions welcomed...
Comment #2
fagoI 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.
Comment #3
blackandcode commented#1: field_collection_expose_operational_links_to_views_1309332-1.patch queued for re-testing.
Comment #5
aaronbaumanHere'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.
Comment #6
aaronbaumanOK, 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).
Comment #8
aaronbauman... and the patch
Comment #10
aaronbaumanfargle bargle testbot
Comment #12
aaronbaumanthis is a good patch.
i give up.
Comment #13
danylevskyiHi 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.Comment #16
socialnicheguru commentedIs this a duplicate:
https://www.drupal.org/node/1257274
Comment #17
aaronbaumanSeems like a dupe, and the other issue is passing tests.