Skip to content
Snippets Groups Projects
Select Git revision
  • 2.x
  • 8.x-1.x default
  • 7.x-4.x
  • 7.x-1.x
  • 7.x-2.x
  • 7.x-3.x
  • 6.x-2.x
  • 6.x-1.x
  • master
  • 2.0.0-beta4
  • 2.0.0-beta3
  • 2.0.0-beta2
  • 2.0.0-beta1
  • 8.x-1.0-beta2
  • 8.x-1.0-beta1
  • 8.x-1.0-alpha3
  • 8.x-1.0-alpha2
  • 8.x-1.0-alpha1
  • 7.x-4.0-beta5
  • 7.x-4.0-beta4
  • 7.x-4.0-beta3
  • 7.x-4.0-beta2
  • 7.x-4.0-beta1
  • 7.x-4.0-alpha2
  • 7.x-4.0-alpha1
  • 7.x-2.0-alpha2
  • 7.x-2.0-alpha1
  • 7.x-2.x-dev
  • 7.x-1.0-beta3
29 results

funnelback

  • Clone with SSH
  • Clone with HTTPS
  • Geoffrey Roberts's avatar
    Issue #3447253 by geoffreyr: Funnelback 16 support
    Geoffrey Roberts authored
    51610ebb
    History

    Installation

    Install the module as per the standard instructions on http://drupal.org/getting-started/install-contrib/modules

    1. You will need a funnelback account. This is an offline process that requires contacting Funnelback.
    2. Place the Funnelback search block in region, the search result page URL is /funnelback/search
    3. To use facet block,you will need to
    • configure facet service in Funnelback admin dashboard to make sure you have facet data in your response
    • place the Funnelback facet block in region
    1. To use view mode in your search results page, you will need to
    • edit metamap.cfg file in Funnelback admin dashboard
    • add 'nodeId,0,nodeId' to a new line in the file

    FAQs

    How can I use view mode for the search results page?

    1. Visit /admin/config/search/funnelback
    2. In Result display settings section, tick the 'Use display mode to render results' checkbox
    3. Select the view mode from the drop down list below
    4. Make sure you have the selected view mode configured for content types in your index
    5. Default Funnelback result template will be used if the result is not a node

    What are the basic settings for Funnelback module

    1. A base URL that Funnelback provides
    2. A collection name that Funnelback provides
    3. A profile name from Funnelback you want to search in, '_default' is used by default

    How can I override Funnelback templates

    The available templates are:

    • funnelback-breadcrumb.html.twig - for selected filters
    • funnelback-contextual-nav-block.html.twig - for contextual navigation block
    • funnelback-curator.html.twig - for Best bet/curator block
    • funnelback-facets-block.html.twig - for facets blocks
    • funnelback-pager.tpl.thml.twig - for pager
    • funnelback-result.html.twig - for single result record
    • funnelback-results.html.twig - for results content region
    • funnelback-spell.html.twig - for spell suggestion
    • funnelback-summary.html.twig - for search result summary block

    These templates can be found in module funnelback/templates folder, copy either of them into your theme folder to override the markup. Preprocess function can be used to alter data in the templates, for example:

    • THEME_preprocess_funnelback_breadcrumb(&$variables)

    How can I have specific field returned from Funnelback

    To have Funnelback index specific field as metadata, you need to:

    • Have the field value output in the page as in metatag. Use drupal_add_html_head() function to add specific value in your preprocess function, see example in funnelback.module line 199
    • Add the custom metatag to metamap.cfg file in Funnelback dashboard: I.E contentType,0,contentTpe. The metatag name need to match the name in previous step
    • Update the index via the Funnelback dashboard

    How can I edit facet blocks

    1. Click Customise Faceted Navigation tab in Funnelback dashboard
    2. Click Add new
    3. Follow the wizard to add a new facet service
    4. Update the collection index

    How can I use custom template for my response JSON

    1. Contact your Funnelback account manager to create a custom template
    2. Submit the custom template file name to configuration Custom template name field

    Note: this feature is only for advanced user. The custom template needs to remain the same structure as the default JSON payload. Missing field will lead to the search failure.