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.
Hi frends,
i use
- apachesolr 7.x-1.1,
- facetapi 7.x-1.2,
- facetapi_multiselect 7.x-1.0-beta1
there is two custom facets (Implements in hook_facetapi_facet_info()):
but i need both in one block (form):
Is it possible? How i can resolve this task?
Sorry if this has already been discussed
Thanks,
Max
Comment | File | Size | Author |
---|---|---|---|
Screenshot need.png | 9.08 KB | theaidem | |
Screenshot is.png | 12.19 KB | theaidem |
Comments
Comment #1
cpliakas CreditAttribution: cpliakas commentedHi drupunk.
I'm not sure if facetapi_multiselect will work with this module, but something like http://drupal.org/sandbox/thegreat/1230568 is what you need. Unfortunately it is a sandbox project, but a lot of work has been done on the Facet API side to ensue that as little code is needed as possible in order to achieve this.
To put this in another way, there is a realm that displays all facets in a single block. You could use this to group your two facets.
Hope this helps,
Chris
Comment #2
theaidem CreditAttribution: theaidem commentedThanks for reply Chris,
Unfortunately is sandbox project (Facet API Block), not solved the problem for me, because i need a single block and single form width two multiselects and one submit button
I tried make this an realm system, but didn't understand how work it.
custom_facet.module
And where my block "Combo facets"? What am I doing wrong?
Thanks,
Max
Comment #3
j4 CreditAttribution: j4 commentedHi did you get this working? If yes could you please share the code?
Thanks
Jaya
Comment #4
davewilly CreditAttribution: davewilly commentedAny update on this? Thanks.
Comment #5
pinkonomy CreditAttribution: pinkonomy commentedI am also interested on this,do we have any news?
thanks
Comment #6
Coyote6GraphX CreditAttribution: Coyote6GraphX as a volunteer commented@theaidem thanks for posting that info. I know it is 5 years later, but it helped me write a module to do this. For anyone who needs it:
https://github.com/Coyote6/drupal-7-combined-facet-block
Comment #7
NWOM CreditAttribution: NWOM commented@Coyote6GraphX would you mind posting it as a module on drupal.org? Thank you by the way, I'll be sure to check it out.