Views Filter Block Port to D6?

BartVG - July 20, 2008 - 19:50
Project:Views Filter Block
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:CrashTest_
Status:won't fix
Description

Any plans for updating this module to Drupal 6.x?

#1

elgreg - July 24, 2008 - 15:02

subscribing

#2

momper - August 11, 2008 - 13:33

subscribing

#3

momper - August 12, 2008 - 08:29
Title:version for D6?» Views Filter Block Port to D6?

#4

CrashTest_ - September 12, 2008 - 04:36
Status:active» patch (to be ported)

Hi,

I have done a bit of a re-write on this module to allow it to work with Views2 in Drupal 6.x. There were some core changes to be able to work with Views2, as it is significantly different on the back end.

Specifically I:

  • updated the code to be compliant with D6 coding standards and methods
  • added an option to make the filter form visible or not on the page view
  • removed the theming and collapsing (I believe it inherits whichever style is set in Views2 which has multiple display types)
  • modified it so that it wouldn't use the same HTML id= tag for all forms on the page (w3c compliance)
  • changed the hiding from $form['#type'] = 'hidden' to hiding with css, as $form['#type'] = 'hidden' seemed to break the results display
  • added a very small css file for the hiding
  • altered the readme to represent the new module location defaults
  • under the recommendation of merlinofchaos, used views_get_all_views() rather than _views_get_default_views() as this doesn't exist anymore
  • replaced strlen and substr with their drupal_ equivalents
  • probably some other things I can't remember

I have tested as much as I can by meself, but it seems to work pretty well. I will be using this on a larger test site next week, and will report any issues with it.

Thanks,

Pat Teglia
(CrashTest_)

AttachmentSize
d6_upgrade-285037.patch 13.55 KB

#5

CrashTest_ - September 12, 2008 - 18:22
Category:feature request» bug report
Assigned to:Anonymous» CrashTest_

Found several bugs once I took it to test on another machine, fixing them now!

#6

momper - September 19, 2008 - 08:55

i posted this: http://drupal.org/node/306825 - so your solution for filterblock is based on css as well - right?

greetings momper

#7

CrashTest_ - September 29, 2008 - 17:07

Well, yes. In the course of trying to figure out some of my bugs, I got stuck. It appears that don't have a clear way around several of the issues. One of them being that when you are the results page, no matter how I hide the form, something breaks.

I ended up emulating the effect I was looking for with CSS, however I still haven't made a real solution to this.

I will continue to work on it over time, but I am imagining that merlinofchaos will probably eventually figure out a better way to do this, as he had mentioned it in the past as something he would like to do.

#8

CrashTest_ - October 1, 2008 - 03:11

And in fact merlinofchaos added this feature to the current -dev version of Views2, so this module is now not needed.

#9

CrashTest_ - October 2, 2008 - 12:51
Status:patch (to be ported)» closed

#10

SocialNicheGuru - March 10, 2009 - 02:26

Can you elaborate on where this feature for views filter block in Views2 is? Or did I misread your post, #8?
Thanks,
Chris

UPDATE:

Is this what will give me a views filter block? Sorry I was not sure of the terminology if it is.

Put the exposed form in a block

#11

raceeend - March 15, 2009 - 19:19

I had just the same problem and after looking in admin/build/block .... there it was ;-).
In the display of a view just set 'Exposed form in block' to Yes. The filter form will be a block, look in the list of blocks (/admin/build/block).

#12

Bevan - April 8, 2009 - 13:00
Status:closed» won't fix

Views 2 for Drupal 6 handles this functionality out of the box, and this module is hence deprecated. See http://www.youtube.com/watch?v=noJ0Tv_QG3w to see how to configure Views 2 to do this.

 
 

Drupal is a registered trademark of Dries Buytaert.