This is a patch set of some of the useful patches I found / wrote here:

#541748: Translate environment title
#567346: facteted search in breadcrumb
#173524: Select multiple terms per facet

In addition, there are three new features added into this:

  • Multiple select check box in the environment settings: allows for enabling/disabling multiple selects on a per environment basis (so far this was done in the code)
  • Remove the environment from breadcrumb (when using breadcrumbs) - the only good reason I can think of for this is when you want to run your main site navigation from faceted search (otherwise you end up with Home > Home: Main )
  • Hide the title: This is useful if you don't want to display the title (of the environment) or the title of the taxonomy on the page title
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

miiimooo’s picture

This new version of this patch set adds a feature that makes the behavior of faceted search more natural: normally the weight of the different facets dictates the order of facets in the selection box and breadcrumb (and title). With this patch the facets are weighed according to the route the user took. For instance, if a user clicked on a country, then region, the breadcrumb will be country->region. If a user clicked on region, then country, the breadcrumb will be region->country. This also happens to the facet block: it will look something like this

 x country: a
 x region: x

and case 2

 x region:  x
 x country: a

This patch and the functionality it introduces is desperately in need for a better name. Also it's amazingly useful. You'll find it in the environment settings labeled:

x Dynamic weight: If enabled, the current search and the breadcrumb will reflect the path the user took to get to the results. The taxonomy facets will be weighted according to the users path.
miiimooo’s picture

Should've checked the previous patches first. Included the wrong diff. Here is the complete patch set...

kvoltz’s picture

has anyone gotten this working? Either I am doing something wrong trying to run this patch - or something isn't hooked up properly.

thanks so much!

kvoltz’s picture

correction, I got the patch working - was a stupid mistake on my part, however there was a failure : Hunk #16 FAILED at 837.

And, because of this - it doesn't seem to be working at all.

Is there an update to this patch - or perhaps a fix to the file?

Its pretty simple, I just don't want the facets showing up in the results title.

Thanks for any help you can provide.

kvoltz’s picture

Heh, never mind. I should have checked a bit closer. I was using the most current stable version. Switched to the .dev version and everything is working perfectly. Well done!

miiimooo’s picture

Title: Patchset: i18n, breadcrumb; NEW: multiple select, hide title, remove environment base from breadcrumb » Patchset: navigation, separator, i18n, breadcrumb, multiple select, hide title, remove environment base from breadcrumb
FileSize
35.13 KB

This is a patchset against the July 11 dev version. In addition to the features listed above there are a couple of more features that may never make it into the module.

  • The dynamic weight functionality is needed to make fs_context work properly
  • This patch changes the separator for terms and other facet keys (at the moment only taxonomy and date_authored) to a hyphen ("-") instead of the colon (":") that causes problems with the drupal menu system. But this can be changed by editing the top of faceted_search.inc (FSSEP)
  • With multiple terms (and i18n) it's possible to get crawlers stuck or doing endless taxonomy-1,2,3,4,5,6... lookups which can be heavy. The limit terms option allows to send a access denied if too many terms are posted.
  • ..

This is a heavily modified version of faceted_search which can be used to build a complex site navigation system. It contains a few fundamental changes so have a play and see how it works.

eiland’s picture

doesnt apply against the 2011-Feb-25 version.