I don't know if this is already implemented and I just missed something / misconfigured something but when I checked the Homebox D7 branch the last time (with Views 3) it didn't put the exposed filters into the configuration section for a block. I also found an old issue (which, however, was for the D6 brand) which stated, that it caused multiple problems when moving the exposed filters somewhere else.

If this is already being fixed, great... If not I would gladly offer my help.

Comments

brianV’s picture

fubhy: Patches are always welcome.

blueflag’s picture

This feature would be incredibly useful

bluesband’s picture

subscribing

darksnow’s picture

This would be a great feature and allow this system to function more like the BBC homepage, where you can add a TV listings block to your homepage, and filter it by channel, for example.

le72’s picture

subscribing.... any news?

darksnow’s picture

I don't know if it's relevant but in "Your Dashboard" the "Your Posts" and "Core Issues" boxes both have what appear to be exposed filters under their settings sections. Does anyone know how this was done and if it would solve this issue?

brianV’s picture

darksnow - that's due to a drupal.org-specific module that makes that happen. I've been offered access to to the code to implement it, but I am personally no longer interested in maintaining homebox.

If you (or anyone) wants to take over this project, you are welcome to it.

darksnow’s picture

I would be interested, but time constraints mean I won't be able to show it the attention it perhaps deserves.

If nobody else can take this on, I'll step up and have a look since I'm interested in Homebox for a project of mine.

Cheers.

djdevin’s picture

Try my module out: http://drupal.org/sandbox/devin/1599402

Add a new view with a display "Homebox" and you should be able to select which filters show up as homebox-enabled configurations. (Under exposed form settings). It doesn't work with complex filters (Date etc) but input filters/dropdowns/checkboxes should function normally.

The new display you create should show up as a selectable block in the homebox layout, and the filters in the exposed form settings you select will be moved to a homebox block configuration instead of a views exposed filter.

This is for 6.x-3.x but should be fine in 7.x with a little work. Tested with Views 3

djdevin’s picture

Status: Active » Needs review
brianV’s picture

Status: Needs review » Needs work

Please provide it as a patch. I can't see what's all been changed at a sandbox link.

djdevin’s picture

@brianV sorry, it's actually a module with only the functionality needed to make special homebox blocks with views filters and put them into homebox areas - nothing was changed in homebox. Unfortunately there was a lot of copypasta from views' own hook_block (so we can pass homebox config) and views_panes.inc (to grab exposed filters from a view and put into a form) because I could not find a better way to do it as the code is not segmented.

We have some active development on this which is better suited for a sandbox.

CLKeenan’s picture

Just checking to see if anything ever came of this. I'd love to utilize the same functionality drupal.org's dashboard (homebox) has.

Dustin@PI’s picture

@BrianV, I am looking at upgrading @djdevin's code for D7, but you mentioned that you have been offered access to the Drupal.org customization that adds the filters. Do you think the Drupal.org approach would make for a better starting point?

brianV’s picture

Dustin@PI:

Unfortunately, I'm no longer maintaining Homebox. drumm took over as maintainer a while back in over in order to prepare it for the next iteration of drupal.org.

That said, from what I recall of the d.org code I looked at that made this functionality work, it was quite use-case specific for drupal.org. Perhaps drumm or someone can post an example here for someone to work into a custom module for their own site, but as a generalized approach / solution for the Homebox module, it didn't strike me as suitable.

That said, that's working off of memory of code I looked at over a year ago, maybe closer to two years ago. It's possible the drupal.org implementation has changed, or I am remembering it wrong.

Dustin@PI’s picture

Thanks for the response BrianV ... djdevin posted a new head in his sandbox project yesterday afternoon. For now I am going to concentrate my efforts on testing and patching there. Hopefully drumm will be able to bring that code into the homebox module.

ref: http://drupalcode.org/sandbox/devin/1599402.git/shortlog/refs/heads/7.x-1.x

djdevin’s picture

I just pushed some more code to the sandbox, you can do things like this:

http://i.imgur.com/WdVyQRR.png

It's a view (with a display of type homebox block) that has 2 exposed filters - date, and node ID. The date is a normal views exposed filter (and works as such) where as the node ID is a homebox filter and stored with the Homebox (so there are two views with different exposed filter values).

I added a custom PHP header to print the node title from the exposed filter argument (which came from the homebox!)

zanix’s picture

Issue summary: View changes

The sandbox mentioned in #16 along with the patches in it's issue queue solved this issue for me.
The really nifty part is you can specify which filters go into the homebox block config and ones that stay in the view.

rcodina’s picture

@zanix Please, could you share which patches are you referring to?

zanix’s picture

rcodina’s picture

@zanix Thanks!

djdevin’s picture

Status: Needs work » Closed (fixed)

See https://www.drupal.org/project/homebox_views

Actually I guess this is won't fix (here).

djdevin’s picture

Status: Closed (fixed) » Closed (won't fix)
HansKuiters’s picture

I have a view with exposed filters in a block. I use Multiblock module (https://www.drupal.org/project/multiblock) to create a new block with the exposed filter block. That new block shows in the Homebox layout settings.