i have a view and many fields are exposed in it. I need to embed (render) a specific exposed filter in my template.
i have came across this article. But it shows all exposed filters of a view.
any idea how this can be done? thanks
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityi have a view and many fields are exposed in it. I need to embed (render) a specific exposed filter in my template.
i have came across this article. But it shows all exposed filters of a view.
any idea how this can be done? thanks
Make a views tpl file with name views-exposed-form--view-name.tpl.php in your theme in this file <?php print_r($widgets); exit; ?>
this will give you your widgets then print your widget like this: print $widgets['your widget name']->widget ;
in end print $button;