Hi, i would like to separate exposed filters and sort into 2 blocks (in default it goes into single block).

Can you help me? Thank you

CommentFileSizeAuthor
#3 exposed.jpg31.66 KBvenoXis
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Active » Closed (won't fix)

There is no way to accomplish this, because there is no way to split a single <form> tag across multiple blocks. You'd have to have the blocks together and the <form> could span them, but even that you'd have to do very much by hand. Sorry!

merlinofchaos’s picture

I agree it is not convenient. Sometimes convenience must be set aside for other concerns, unfortunately. In order to make it a UI flag, it would have to become a fully baked feature; if you can't use it in the UI naturally, then the existence of the flag would be very confusing. In order to use it from the UI then, we would have to have some kind of token setup. And once we do that, we might need some other set of footer tokens. This can get very complex, very fast, you see, because of the chain of expectations we create with UI elements.

venoXis’s picture

FileSize
31.66 KB

I thought it. So other option is via CSS. I tried to paint it (attachment) what i need. If there is not way to separate, is there way to add new other submit button? I know that is not clean way but i realy need it. Any other ideas?
Thanks

bporter2387’s picture

This is how I did it.. Maybe not the best way, but certainly a way.. (idk if this works with the block system. I'm using views content panes)

Expose the filter in a block. Then in panels, you can display the block multiple times in any region you want. Then use CSS to hide and show the id's.

.content #edit-tid-wrapper {display:none;} \\ this will hide the taxonomy exposed filter in the content region
.sidebar-left #edit-location-wrapper {display:none;} \\ this will hide the proximity location filter in the sidebar left

Hopefully that helps.

gettysburger’s picture

I am trying to do something like this but just want to split the exposed filters between two separate divs. I have six filters and want two of them wrapped in one div and the other four in another div. Is this possible? Thanks.

deggertsen’s picture

jelo’s picture

Issue summary: View changes

Did anyone get these workarounds, such as showing the exposed form multiple times and hiding elements in it, to work with AJAX? As soon as I put the exposed form on the page a second time AJAX stops working...