Drupal Views2 Exposed Form how to change

后端 未结 5 1451
清歌不尽
清歌不尽 2021-01-15 14:56

I have a View with an exposed form . I am trying to a few things on it. Ideally I would like to have a dropdown that fires the form with no button. If that is not possible t

5条回答
  •  Happy的楠姐
    2021-01-15 15:02

    Both of the above are fine but I found out that altering the form might not always lead to desirable results, mainly because exposed filters are themed using a specifc theme template. The proper way of changing the theme would be to override the views-exposed-form.tpl file in your theme's folder. Bear in mind that this will apply to all exposed filter forms, to theme a specific one, you will need to use a different name for that filename, like:

    views-exposed-form--TITLE--DISPLAY.tpl.php
    views-exposed-form--TITLE.tpl.php
    

    and some others, you can check the Theme: Information section of your views for template naming conventions.

提交回复
热议问题