Provide for contextual filter argument option on field widget

Created on 27 August 2016, about 8 years ago
Updated 22 January 2024, 10 months ago

Problem/Motivation

Contextual arguments on views used within an entity browser, such as the contextual filter "content ID from url", do not work.

Proposed resolution

Add option on field widget to specify url arguments, using tokens that would be passed to the view to populate the contextual filter arguments.

Remaining tasks

User interface changes

API changes

Data model changes

Original issue description

Created a media type with a entity reference field to node.
Set up a entity browser type.
Created a entity browser view with media list.
Created a field in the content type with widget entity browser.

It works fine and displays all media.(like a 100) which makes selection hard.

I only want the media referencing the node so set up a contextual argument with default value: content ID from url.
Though the view preview shows the media (5 media files), it fails in the entity browser both in iframe and modal.

โœจ Feature request
Status

Needs work

Version

2.0

Component

User interface

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia SantVim

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024