Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX Enhancement: Passing default arguments #11

Open
loganyott opened this issue Feb 28, 2017 · 1 comment
Open

UX Enhancement: Passing default arguments #11

loganyott opened this issue Feb 28, 2017 · 1 comment

Comments

@loganyott
Copy link

Right now, we have a textfield that allows us to pass default arguments to views.

It would be really awesome if instead of content editors needing to know tids, nids, etc. off the top of their head, if we displayed the exposed filter form inside of the field widget as well. Any option selected by the content editor would disable that exposed filter for the end user View.

That's just one idea, but the actual suggestion is just: better default argument handling for Views.

@philippze
Copy link

Here's a quick and ugly way to display exposed filters with a viewfield:

Install the module twig_tweak, use Ajax in the View, and replace the template of the viewfield with this:

{{ drupal_view(element['#object'].field_view.0.target_id) }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants