Use this when users are likely to filter results or there are 6+ filters.
Responsive layout for a generic search page. Includes common filter options in the side menu. The sidebar menu is hidden by default on mobile but users can click on the filter icon in the upper left to open the sidebar.
- When this page is added to your app, it will come with two main groups:
- Blocks container 860 (do not rename)This group contains the responsive settings for all blocks on the page. Any new blocks should be added to this group.
- Floatinggroup Side bar_website - This group contains all the different filter options for the search page.
- This page comes with one popup:
- Popup Hidden Variables contains four groups:
- var - Website object This group stores the website object (e.g., app name, primary color, and etc.)
- var - dummy data A placeholder group in case you want to use any hidden variable groups later.
- var - RepeatingGroup Categories This repeating group will store the user's checked categories in RepeatingGroup Dummy
- var - page less than 1111 This checks the page's current width. The side bar will hide when the current page width is less than 1111px.
- The page comes with two navigation elements that toggle the filter sidebar's visibility on mobile:
- FloatingGroup Open sidebar button
- FloatingGroup Close sidebar button
- Entering values into the inputs in the sidebar will run a custom workflow called Perform search
- The main purpose of the “perform search” workflow is to adjust the parameters in the URL so that it contains the filters that the user has selected or entered. With that setup, a list of filtered results can be shared through these links that contain the filters in the URL (similar to sharing a specific list of results on Airbnb).
- This workflow is optional and it is not required to filter the repeating group.
- Update the data source or add/remove any input elements in the sidebar to fit your use case
- [Optional] Update the Perform search custom workflow accordingly.
- [Optional] If you add a new input, update the Perform search custom workflow to include the new parameter.
Add another parameter and pass it the new input's value. The parameter name (key) can be anything you choose.
If you add or remove filters, please resize Group sidebar PLACEHOLDER sidebar so that it is not overlapping with any other elements (for responsiveness).
- Update RepeatingGroup Dummy's data source and var - RepeatingGroup Categories' type of content and data source
- Resize Blocks container 860 (do not rename) and add other blocks inside of it
- Link the filters to a block you've added by setting search constraints on the block's repeating group's data source
- It is also important to make sure that “ignore empty constraints” is checked underneath the constraints, so that all results will display when no filters are selected.
If you add more blocks, please resize Group PLACEHOLDER content so that it is not overlapping with any other elements (for responsiveness).
- Floatinggroup Side bar_website is set to float to both so that the sidebar is anchored to both the top and bottom of the page and allows for scrolling within the floating group. When a floating group is set to both, the floating group height needs to be the same height as the page height (i.e., the bottom of the floating group is aligned with the bottom of the page). If not, then the floating group will "disappear" when you preview the page.