For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration

Configure FactFinder connection settings and trigger initial searches.

This chapter describes the minimal configuration necessary to search and retrieve results from FactFinder.

You can configure the communication via the custom element ff-communication or directly via JavaScript.

A minimal configuration consists of the following settings

URL

Specify the FactFinder endpoint.

Please note the context name /FACT-Finder. It is not sufficient to provide the top-level domain like https://web-components.fact-finder.de/, which will result in an error.

Make sure you are using the same protocol (http://, https://) for the url setting and webapp.

Using url="http://web-components.fact-finder.de/FACT-Finder" on a page hosted via HTTPS will result in an error.


version

Specify the FactFinder version. E.g. ng or 7.3.


api

When using FactFinder NG, specify the FactFinder API version. E.g. v5, v4, v3 or v2.


channel

Specify the name of the channel which is used for the search.

You can find the available channels in your FactFinder UI.

FactFinder Web Components Approach

We recommend placing the ff-communication element immediately after the body tag to reduce the risk of accidental reordering.

Furthermore, we advise adding a comment explaining this requirement. For example:

search-immediate

The search-immediate attribute ensures that a search is automatically triggered as soon as ff-communication was successfully attached to the DOM.

The triggered search request uses the current URL parameters in conjunction with the settings provided by ff-communication attributes.

If no search query is provided through the URL or an attribute, * will be used as default (search for all products).

You don't want the search-immediate attribute to be present on your landing (home) page because this would trigger a search every time a user enters your shop.

Usually you only want to use it on category pages and on the search result page.

JavaScript Approach

While ff-communication provides a declarative way to configure the communication, it is also possible to do so directly via JavaScript as follows:

Although the entire configuration can be done using JavaScript, we discourage direct use of custom JavaScript to do so and strongly recommend configuring everything through FactFinder Web Components.

Last updated

Was this helpful?