This is a demo of the template search widget.
This demo page lives at https://projectionhub-webflow.netlify.app/
Depending on the size of the page and the container in which the search widget is placed, the search results may be displayed horizontally or stacked on top of each other.
The search widget can also be displayed either taking up space (block, seen below) or floating over the page (inline, seen above in the menu bar).
This page extends all the way to the edges so you can resize the window to see the change:
This search widget sources all of it's data from the Airtable base found at https://airtable.com/apphmjf1iAyvnMzZ6/tbl7cFZeefkcRoUFz/viwwMMZ6ZMdq92Qwz?blocks=hide.
These columns are used in the widget:
Any of the data of these columns can be modified. The changes will be picked up within an hour by the syncing system and put into Algolia. Rows can also be added and deleted and this will add new or remove existing results from the search.
It is important that the headers of the airtable base are not changed or renamed or the widget will break. If you need any of these to be renamed either in Airtable or on the widget itself, a developer will need to make the change.
Because the search widget needs to interact with the structure of the surrounding page, sometimes taking up space or displaying on top of other content, the search widget runs inside of it's parent page and not in an iframe like the pitch decks tool. As such care was needed to be taken to ensure that the styles of the search widget do not bleed out into the surrounding page and vice versa.
This demo page is created with Bootstrap and is independent of the styles of the widget to test that the styles do not conflict.
Put this tag where you want the search bar to show up:
You can configure certain aspects of the widget by modifying the attributes of the embed snippet:
The above tag creates an entry point for the widget's main code. In order to actually load the widget code, this script tag needs to be put at the bottom of the <body> tag on every page that will need to load widgets.
If no widgets are found on the page, this script will do nothing, so it wouldn't hurt to put it on the bottom of every page on the site, perhaps next to the Google Analytics tag: