Download & Extend

How do I use the new Current Search Blocks module?

Project:Facet API
Version:7.x-1.x-dev
Component:Custom Search Blocks
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The Current Search Blocks module now bundled with Facet API allows site builders to create, manage, and configure blocks that contain information about the search being executed. The following steps are an overview of what the module provides and how site builders can use it. The first step is enabling the Current Search Blocks module which has a dependency on Facet API. Users with the administer search permission can create and manage configurations at admin/config/search/current_search. The configurations are managed by CTools, so there is a familiar interface that allows you to perform common operations such as adding, importing, editing, disabling, deleting / reverting, exporting, and cloning configurations.

current-search-01-configs.jpg

When adding a configuration you have to give it a name and select which searcher, or search page, the current search block will be active on. If your site has multiple search pages, you can reconfigure this setting later by visiting the block's configuration page as illustrated in a later step.

current-search-02-new-item.jpg

After saving the configuration, you can add "items" to the current search block. Facet API provides site builders with three core items: custom text, a list of active items, and a list of active items grouped by field. Items are plugins, so module developers can create their own and contribute them back to drupal.org.

current-search-03-add-items.jpg

Once items are added, their display order can be set through the drag and drop interface. Each item provides additional configurations in the vertical tabs at the bottom of the page. Many of the configurations allow for search results aware tokens, so dynamic messages can be displayed.

current-search-04-configure.jpg

Examples of the core plugins are illustrated below. The example also shows how multiple current search blocks can be active on the same search page.

current-search-05-example.jpg

Each configuration exposes a block that needs to be enabled in a region in order to be displayed on the search page. Each current search block is prefixed with "Current search:" and followed by the name of the configuration as shown in the example above.

current-search-06-core-block.jpg

Although site builders select the searcher when the configuration is created, it can be changed later on via the block's configuration page. Each current search block adds a "Search Page" visibility setting as shown below:

current-search-07-block-visibility.jpg

AttachmentSize
current-search-01-configs.jpg53.52 KB
current-search-02-new-item.jpg57.72 KB
current-search-03-add-items.jpg71.36 KB
current-search-04-configure.jpg92.44 KB
current-search-05-example.jpg103.78 KB
current-search-06-core-block.jpg61.3 KB
current-search-07-block-visibility.jpg67.28 KB

Comments

#1

Great !! Stronger and stronger !!
Dont see display widget choice for active facets -only links supported?

#2

Right now only links are supported, and it actually doesn't hook into the widget system which is a really great idea. I think this is an excellent feature request, but probably something that will have to go into Facet API Extra so we can stabilize the code base and get an RC1 out within the next couple of days.

Thanks for the feedback,
Chris

#3

Status:active» fixed

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here