Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
brianV CreditAttribution: brianV commentedfubhy: Patches are always welcome.
Comment #2
blueflag CreditAttribution: blueflag commentedThis feature would be incredibly useful
Comment #3
bluesband CreditAttribution: bluesband commentedsubscribing
Comment #4
darksnow CreditAttribution: darksnow commentedThis 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.
Comment #5
le72subscribing.... any news?
Comment #6
darksnow CreditAttribution: darksnow commentedI 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?
Comment #7
brianV CreditAttribution: brianV commenteddarksnow - 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.
Comment #8
darksnow CreditAttribution: darksnow commentedI 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.
Comment #9
djdevinTry 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
Comment #10
djdevinComment #11
brianV CreditAttribution: brianV commentedPlease provide it as a patch. I can't see what's all been changed at a sandbox link.
Comment #12
djdevin@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.
Comment #13
CLKeenan CreditAttribution: CLKeenan commentedJust checking to see if anything ever came of this. I'd love to utilize the same functionality drupal.org's dashboard (homebox) has.
Comment #14
Dustin@PI CreditAttribution: Dustin@PI commented@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?
Comment #15
brianV CreditAttribution: brianV commentedDustin@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.
Comment #16
Dustin@PI CreditAttribution: Dustin@PI commentedThanks 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
Comment #17
djdevinI 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!)
Comment #18
zanixThe 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.
Comment #19
rcodina CreditAttribution: rcodina commented@zanix Please, could you share which patches are you referring to?
Comment #20
zanixThe issue queue for the sandbox posted in comment #16 is https://www.drupal.org/project/issues/1599402?status=All
I applied these patches:
#2179723: Make selected filters in the exposed block configuration exportable
#2178793: Not all exposed filter values are saved
Comment #21
rcodina CreditAttribution: rcodina commented@zanix Thanks!
Comment #22
djdevinSee https://www.drupal.org/project/homebox_views
Actually I guess this is won't fix (here).
Comment #23
djdevinComment #24
HansKuiters CreditAttribution: HansKuiters commentedI 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.