I have a view in place that uses exposed filters in a block. In IE (7 & 8) once "Apply" is clicked the view does not show any results and the exposed filters are found over the view area (where they would be normally if not in a block) and also in the block. Everything works as it should (returning results and keeping the exposed filters in the block) in Firefox and in Chrome. The reason that it is breaking in IE is because I have added a view to the exposed form block via an appropriately named tpl file. Can anyone take a look at what I've done and let me know why it's not working in IE? I wish everyone would just switch to Firefox so I could stop dealing with these browser issues!!
// $Id: views-exposed-form.tpl.php,v 1.4 2008/05/07 23:00:25 merlinofchaos Exp $
/**
* @file views-exposed-form.tpl.php
*
* This template handles the layout of the views exposed filter form.
*
* Variables available:
* - $widgets: An array of exposed form widgets. Each widget contains:
* - $widget->label: The visible label to print. May be optional.
* - $widget->operator: The operator for the widget. May be optional.
* - $widget->widget: The widget itself.
* - $button: The submit button for the form.
*
* @ingroup views_templates
*/
if (!empty($q)):
// This ensures that, if clean URLs are off, the 'q' is added first so that
// it shows up first in the URL.
print $q;
endif;
?>
Comments
Comment #1
scalp commentedComment #2
dagmarIf this is working in Firefox and Chrome probably is not a view bug.
You should, wrap your code in <code> </code> tags, we cannot see the complete tpl code.
Comment #3
scalp commentedHere's the code properly wrapped. I have it saved in the file views-exposed-form--search--default.tpl.php
Comment #4
dawehnerupdate
Comment #5
esmerel commentedno activity in 6 months