문제

I have a view and customize it with a template named views-view--myviewname--page.tpl.php. My problem is that exposed filters doesn't showing when loading the page. But in preview in view editing screen showing as expected. Is there a solution about this issue?

Thanks in advance

도움이 되었습니까?

해결책

  1. Make sure you are printing $exposed somewhere in your template file. In the default template file (https://api.drupal.org/api/views/theme!views-view.tpl.php/7) this is done using the following PHP code:

  2. In your View's advanced settings, ensure you have "Exposed form in block" set to "NO" as in this screenshot http://cl.ly/image/1A3A3h0k3437.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top