Some themes place border around fieldsets and make then collapsible. It would be nice if we had the option in the admin setting page to disable the encapsulating fieldset tags.

The included patch will do this. Hopefully you will include it in a new release.

CommentFileSizeAuthor
#1 usefieldset_0.patch3.33 KBvangorra
usefieldset.patch3.25 KBvangorra

Comments

vangorra’s picture

Title: Option to use fieldsets. » UPDATE: Option to use fieldsets.
StatusFileSize
new3.33 KB

Sorry, looks like there was an issue with overwriting the field title when the original form provided more than 1 field. This should do it.

woc_art’s picture

I've been looking around for this. But I'm a real newbie to drupal, can anyone explain how I use this patch? I've been looking at the drupal handbook but I'm getting really confused. Do I need to be hosting Drupal on my own computer to apply the patch? Cuz right now I'm using paid hosting.

THanks!

woc_art’s picture

Nevermind, I just found this http://drupal.org/node/169051

Hope it helps anyone else who is looking to remove fieldsets!

EvanDonovan’s picture

Alternatively, you could simply use this snippet of code in a theme override called phptemplate_views_filterblock:

  foreach ($view->exposed_filter as $count => $filter) {
    $newform["fieldset$count"] = array(
      '#type' => 'fieldset',
      '#title' => $filter['label'],
      '#collapsible' => false, // don't want the form to collapse - ead 6.12.08
      '#weight' => $count - 1000, // we'll never have this many filters
    );
    $newform["fieldset$count"]['#collapsed'] = false; // don't want the form to collapse - ead 6.12.08
  } 

Note that I believe you'll have to include the rest of the function as it is written in the module for this to work.

I just changed the module myself, since I don't ever want the fieldsets to be collapsible & I already have too many things in my template.php file :)

pomliane’s picture

Status: Active » Closed (won't fix)

This version of Views Filter Block is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.