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 have a content type that takes information for City, State, and Building name (All taxonomies). I am trying to create a block that allows a user to filter all these options in one block. E.g.if someone would like a certain city, state and name, they can select all of their filter criteria within the block and submit it to be sent to a page that has been filtered with all of the conditions the specified.
I have tried messing with relationships and contextual filters and have read the documentation, but can't quite seem to figure it out. Does anyone have any possible ideas?
Comments
Comment #1
xarchmaemo CreditAttribution: xarchmaemo commentedI did a little digging and noticed the "expose form as block" option under advanced options in views. Did everything I needed.
Comment #2
dawehnerGreat!
Comment #3.0
(not verified) CreditAttribution: commentedRevised to condense
Comment #4
anne1960 CreditAttribution: anne1960 commentedDid you create 3 different views for each filter?
Did you then add filters in the advanced section. and allow ajax to function?
Comment #5
anne1960 CreditAttribution: anne1960 commentedwhere did you find 'expose form as block' I have a dutch version, and I can't seem to find it.
I have 3 seperate taxonomy lists - 3 views which I show in 1 block - and only after having chosen the third it can filter.
Or is this the wrong way to do it?
Comment #6
anne1960 CreditAttribution: anne1960 commentedComment #7
MustangGB CreditAttribution: MustangGB commented