Views pager goes missing when views Header is used. Simple enough.
Sorry, I take back the simple part of my statement above >.<
The views Header that I have, is using PHP Filter input. And..
It appears to be this
<?php views_embed_view() ?>
This is what's in my views Header:
<div class="view-filters"> <form> <div> <div class="views-exposed-form"> <div class="views-exposed-widgets clearfix"> <div class="views-exposed-widget views-widget-filter-group_audience_gid"> <label for="edit-city">Sort by cities</label> <div class="views-widget"> <div class="form-item form-type-textfield form-item-city"> <select id="edit-city" class="form-select" name="city"> <option value=""> ALL </option> </select> </div> </div> </div> <div class="views-exposed-widget views-widget-filter-title"> <label for="edit-name">Elephant name</label> <div class="views-widget"> <div class="form-item form-type-textfield form-item-name"> <input type="text" class="form-text" maxlength="128" size="30" value="<?php print(isset($_GET['name']) ? $_GET['name'] : ''); ?>" name="name" id="edit-name"> </div> </div> </div> <div class="views-exposed-widget views-submit-button"> <input type="submit" class="form-submit" value="Search" name="" id="edit-submit-elephants"> </div> </div> </div> </div> </form></div>
What I am trying to do is, to create my own exposed filter form. Items within the dropdown select will be generated via another view.
Has anyone done this before?
Cheers for now,
Ok. The problem came from the embedded view being paged and no Pager ID has been set, since there are multiple views displayed on the same page.
I've have a similar problem. I've embedded a entityform in the header of a view. The view shows a table with the data inputted through the form. I miss the pager for these table. Perhaps it's the same reason described earlier in this blog. But do you have any ideas to overcome this problem?
Thanks * Peter
P.S. here the embedded php-code in the header:
<?php module_load_include('inc', 'entityform', 'entityform.admin'); $entity_form_name = ''; $render_estimate_form = entityform_form_wrapper(entityform_empty_load('administer_user_money_account'), 'submit', 'embedded'); echo drupal_render($render_estimate_form);?>
If you have multile pagers on the same page you have to setup different pager IDs for both pagers. In views you can directly configure it in the pager settings, so it might be easier to use that configuration.
This is pretty much by design of the pager system.
Automatically closed - issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.