I am creating a gallery with a bunch of filters on the side that a user can use to narrow down the galleries displayed.

There are 2 aspects I would like to add to the top of the gallery though and I can't figure out how to do them and researching has been difficult.

1) I have one filter, called gallery. This filter narrows down the results to a particular kind of gallery. I would like the filter selected to print out at the top of the gallery view page, sort of like a title but I have a placeholder for it in the tpl.php file I made.

So: How can I print out the selected filter from the exposed filter called gallery? I have found information to do this but only as an array number not as plain text. So if a user clicks a filter option, the gallery refreshes as normal and the print out at the top changes as well.

2) Create a "breadcrumb" of applied filters? Sort of like "filter 1 > filter 2 > filter 3 etc." Based on what I am seeing from the client, if you clicked on a previous filter, it would turn off the ones in front of it. That is a little more advanced, so even if I can just get a print out of each filter, that would be great. Really i think similar code as in #1 would be used for this.

Comments

TravisJohnston’s picture

Also, I know of the exposed filter data module and this look promising but it just spits out array numbers and their support had a ticket for it but hasn't been resolved. Also would like to limit it to only specific filters. Breadcrumb would be created by all the filters, where the title would only use the gallery filter.

TravisJohnston’s picture

I see if I place

<?php print $view->exposed_input['gallery'] ?>

where I want the single filter title displayed, it seems to work, but only prints array, not a human-readable output.

MustangGB’s picture

Issue summary: View changes
Status: Active » Closed (outdated)