Search Page

Overview

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.

Structure

  • 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.

  • This page will come with two reusable elements:

  • 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.

How to set up

  • 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.

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).

Why is my sidebar not showing?

Floatinggroup Sidebar_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.

Last updated