Needs work
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Jan 2017 at 06:33 UTC
Updated:
2 Feb 2022 at 02:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jibranComment #3
dawehnerThere is no reason that this is added in ctools. This is core feature we should add.
Comment #4
jibranThe form needs to ajaxify and we need tests.
Comment #5
jibranUpdated issue summary.
Comment #7
andypostwe used to get rid of module group name as key... any reason to use translation as key?
needs issue or work here
this looks scary to parse route name,
I bet it easy to iterate through route match params with checking for FieldableInterface and names
Comment #8
jibranRe: #7:
Comment #11
acbramley commentedFrom some manual testing it looks like there's a small bug when editing an existing contextual filter that was using a different plugin and changing it to this one. The Field dropdown doesn't appear and there's a JS error output:
Comment #12
jibran:P
Comment #13
acbramley commentedMy bad!! XD
Comment #18
larowlanThis also needs to work on node-revision pages, does not at present
Comment #19
jibranWe need an API from core to provide entity object from route param, i.e. D9 version of
menu_get_object(). In D8,metatag_get_route_entity()doing the same thing. Also, see the discussion after #18 in #2847224: Add views argument_default for getting Entity ID from URL.Comment #20
claudiu.cristeaComment #23
kim.pepperComment #25
cman9090 commentedAfter trying patch #4, there was a few things not working but luckily a fully functioning plugin module has been written.
https://www.drupal.org/project/views_arg_entity_field
I've copied this plugin code and applied as a patch for core consideration.
Comment #26
jibranCan you please add some screenshots and maybe tests as well? We should keep the plugin name the same so that it won't break for the existing sites using this patch or the module.
Comment #27
ranjith_kumar_k_u commentedFixed CS errors
Comment #28
ravi.shankar commentedFixed Drupal CS issue of patch #27.
Comment #29
cman9090 commenteddo not use.
Comment #30
cman9090 commenteddo not use
Comment #31
cman9090 commentedUpdated patch with CS fixes and renamed the plugin name to the original patch plugin name.