Having form elements for exposed filters rendered inside of divs instead of inside a table would allow for more control over the style of those elements. This would be especially useful for modifying the appearance of a view with multiple exposed filters which, when placed in a table, are impractically wide.

What is your sense of the scope of this kind of undertaking?

Thank you!

CommentFileSizeAuthor
#4 views-select-size.patch422 bytesJirkaRybka

Comments

tignux’s picture

This would be great.

I try to solve the IE width problem when I show multiple filters but nothig happens.

I suppose two solutions:
- replace

with
(so we have enough space)
- replase
with

I hope someone can do it.
Thanks in advance

tignux’s picture

This would be great.

I try to solve the IE width problem when I show multiple filters but nothig happens.

I suppose two solutions:
- replace

with
(so we have enough space)
- replase
with

I hope someone can do it.
Thanks in advance

tignux’s picture

Sorry for my double.

I found http://drupal.org/node/79302 and It was very helpful for me.

JirkaRybka’s picture

StatusFileSize
new422 bytes

Yes, change of markup around exposed filters works reasonably well via theme's template.php, but still:

- This fact should be more visibly announced somewhere (it's a beginner's typical point, where to get stuck, this really-necessary but not-so-obvious styling), I myself didn't know it despite all the search on Drupal.org, and almost proceeded to submit a patch for views.module here (wasted a lot of time making it).

- I think the most sensible styling of exposed filters (when there are lots, and flexible page layout - no absolute width) are floats (i.e. boxes with single filters filling screen width as necessary). This works well with uniform height defined on these floats, but require the filters to be not much different in vertical size. The problem then arises with textfield (1line) versus select (8lines).

- Personally I've decided to have just only 3 lines visible in each selector, because of this theming, but I had to patch views.module (attached, but that's only just a quick non-flexible hack), because I'm not aware of any other way to control selects size. Can someone add a feature to have the size configurable?

Attachment is just example - not to be commited to the distribution.

nancydru’s picture

+1 for me. As a possible alternative, let me select only one option for the filter and at least do away with the selector box.

merlinofchaos’s picture

Status: Active » Closed (fixed)

Views 2 has a much more sensible exposed filter form.