Timeline for Overriding exposed filters: Twig has no effect
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 11, 2017 at 11:51 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
Discussions about the question being on/off-topic don't belong to the question.
|
Dec 11, 2017 at 7:33 | comment | added | 4uk4 |
@PolGraphic, I think you are looking for views-exposed-form.html.twig , this is the output of exposed filters. The other template is from the Views UI, for the form to configure the exposed filter, which you would have to override in the admin theme.
|
|
Dec 11, 2017 at 5:14 | comment | added | Darvanen |
Just because you don't want to use hooks doesn't mean you don't have to. Views typically doesn't play well with the theme engine, have you tried inserting your template into theme suggestions using hook_theme_alter() ? Have you even inspected the build to see if there are any theme suggestions in there? I suspect you will find there is no other way.
|
|
Dec 11, 2017 at 3:27 | history | edited | PolGraphic | CC BY-SA 3.0 |
added 513 characters in body
|
Dec 11, 2017 at 3:25 | comment | added | PolGraphic | @Darvanen How it's a duplicate of post asking on different topic? I don't want to make a hook and I don't want to override default view template, but default expose filter for template (that's huge difference, I know perfectly how to override default view template). | |
Dec 11, 2017 at 2:58 | review | Close votes | |||
Dec 13, 2017 at 15:58 | |||||
Dec 11, 2017 at 2:39 | comment | added | Darvanen | Possible duplicate of hook_theme_alter(): How to override a default views template from another module | |
Dec 11, 2017 at 2:12 | comment | added | PolGraphic | I think so, according to the Drupal documentation on API page (correct me if I'm wrong): api.drupal.org/api/drupal/… | |
Dec 11, 2017 at 1:22 | comment | added | Kevin | Is this the correct filename you should be using? | |
Dec 11, 2017 at 0:23 | history | asked | PolGraphic | CC BY-SA 3.0 |