AEM Templates

Search Results Template

When a resident runs their search query, they are directed to a Search Results page. On this page, they will interact with the Search Results component to find the answer they are seeking.

 

Each search runs in a Search Hub, a specific search solution that provides results from a set of data. Sapient configures Search Hubs, and authors can then configure the Search Results component on their pages. Authors may edit the component once added, and may edit the rest of the page as normal.

 

Note that the Search Results template is for global searches, across all of PA.gov. It does not include Side Navigation, and is not meant for agency-specific search pages. If an agency needs limited search capabilities (ex. DLI-only search results), they should contact Sapient, and a Search Hub will be configured. It can then be added to the Agency Content Page template. 

Overview

Template name: PAGov Search Results Page

Required components in template:

Authors who can edit: Admin and members of global user groups

Creating a Search Results Page

1. Select where in the sitemap the new page should be created. Click through the site hierarchy to determine the location. In the example below, the page is created as part of the PA.gov site, in the English section.

2. Click “Create,” then select “Page” from the dropdown.

Site hierarchy featuring various pages with Website Policies page selected and "Create" dropdown open

3. From the “Create Page” template options, select “PAGov Search Results Page,” then “Next.”

4. The author may now choose Page Properties for the newly created page. None are required for this template.

5. Click “Create.” The page is now part of the site hierarchy.

6. Click “Open” to edit the page immediately. Click “Done” to return to the site hierarchy.

Editing the Search Results Page

1. Find the page in the sitemap. Click through the site hierarchy to find the location. In the example below, the page to edit is in the CoPA PWP PA.gov site, in the English folder, titled "Search Results Template." Click the checkbox to the left of the page title.

Site hierarchy featuring various pages, with page Search Results Template selected

2. Upon click, a menu appears at the top of the screen.

  1. Select "Properties" to edit Page Properties.
  2. Select “Edit" to edit the page.

3. The page opens in the editing mode, and components can be added accordingly.

  1. Add the Search Results component to the page and configure as needed.
  2. The Search Results template doesn't have Side Navigation, so Containers automatically stretch the full width of the page. Adjust the Container size from "None" to "Component Container" to add padding to the left/right. Read the Container guide for more info.

4. Page edits will save automatically. Past page versions can only be referenced if a version was created. Read the Saving Page Versions guide for more info.

Page Properties

  • There are no unique Page Properties for Search Results pages.

Other Tips

  • There is no Side Navigation on the Search Results pages. Make sure to guide residents from page to page through Hero CTAs, Teasers, Lists, etc.