Overview
Component name: Popover
Authors who can use component: any
Templates/page types that can use component: any
Required or optional: optional
Authoring Fields
Creating a Glossary Content Fragment
1. From the landing Navigation page, click on Content Fragments.
2. On the left hand panel, select the folder where the CF is needed. It can be used by any page in this folder.
a.Select the Global folder for a Glossary term that can be used anywhere on PA.gov. This is called a global glossary.
b.Select your agency’s folder for a Glossary term that is specific to your agency. This is called a local glossary.
c. Once selected, click “Create” in the upper righthand corner. In this example, the CF is in the DHS folder (a local glossary term).
3. New Content Fragment
a.Location pathfinder: This field shows the URL of the folder selected in Step 2. It does not need to be edited.
b. Content Fragment Model dropdown: Select “Glossary.”
c. Properties fields
i. Title: Optionally provide a title for your Glossary CF. Adding a title automatically creates a name as well. Note: this does not need to the name of the term you are defining.
ii. Name: Provide a name for your CF. Only mandatory field in Properties.
iii. Description: Optionally provide a description for your CF.
4. Click “Create and open” to add detail to the Glossary CF immediately. Click “Create” to create the Glossary term and exit the authoring dialog- it can always be edited later.
Editing the Glossary Content Fragment
1. Glossary Name field: Add the term you are defining. It must be spelled exactly as it will be used (upper/lowercase; no spaces). Only one definition of the term may exist in the global or local glossary (ex. only one definition of CHIP in the DHS Content Fragments folder).
2. Definition field: Add the term’s definition. May optionally include a link.
3. Link pathfinder field: Optionally add an internal link. This won’t display on the Glossary, but is the preferred link for the term when searched.
4. Click “Publish” button and “Publish Now” in the top right corner. This makes the CF available for use on pages.
Adding the Glossary CF to a page with the Popover
1. From the landing Navigation page, click on Sites. Navigate to the desired page.
a. If using a global glossary term, this may be any page on AEM.
b. If using a local glossary term, this must be a page in the same agency folder as the Glossary CF. Ex. a term in the DHS Content Fragments folder can only be referenced on a DHS page.
2. Once on the page, add the Text component. Add any text, including the term that is to be defined.
3. Open the Text component so the full authoring dialog displays (not the abridged inline version).
4. Highlight the term for which a Glossary CF was created.
5. From the Styles dropdown (the S option), select the correct glossary. In this example, since we are in the DHS section referencing a DHS term, select Local Glossary. A checkmark appears.
6. Click Done and exit the Text authoring dialog.
7. In edit mode, the term is now underlined.
8. Test that the Popover appears correctly. Select the Page Information icon from the top menu, then View as Published.
9. In View as Published mode, select the term. The Popover appears, with the Glossary CF definition displaying to the side.
Accessibility
1. There are no specific accessibility notes for the Glossary CF or Popover component.
Other Tips
1. Glossary terms may only be one word. An enhancement is planned to enable phrases.
2. If you are updating an existing Glossary CF, make sure to publish again so the changes are pushed.
3. If the Popover is not displaying in View as Published, check the following:
a. That the highlighted term has no spaces before or after.
b. That the highlighted term exactly matches the Glossary Name field in the CF, including uppercase/lowercase letters.
c. That the Glossary CF was published.
4. The Popover will not display in Preview mode; make sure to test in View as Published.
5. There is no limit to the amount of Popovers that may appear on a page.
6. Authors need to individually apply the Popover each time they want it to display for a term.
7. If author selects Popover styling and there is no matching Glossary CF, no Popover will display.
8. When the Popover is open, residents can scroll on the page, and the Popover stays in place.