Accordion

Displays text in a collapsed, condensed manner, letting you save space while allowing visitors to scan the titles, and choose to expand an item only if it is of interest.

 


Adding, Moving, & Deleting the Component

All components share the same processes to be added, moved, and deleted.


Editing the Component Content

Hover your mouse cursor over the content preview area and click the yellow Edit button that appears over the top right of the component. A new modal window will open with all of the content fields available for the component.

 

  1. Image - Adds an image to the side of the title and description. The image is hidden when the accordion is closed and revealed when opened.

  2. Title - Adds a line of styled text above the description. The title will always be displayed when the accordion is closed or open.

  3. Description - Adds a block of rich text underneath the title. The description is hidden when the accordion is closed and revealed when opened.

  4. Video URL - (Optional) Inserts a Youtube or Vimeo link to the image area and overlays a play button.
    When visitors click anywhere on the image, the video will play in an overlay over the entire page.
    To use the video’s thumbnail, clearing the image field.


Component Options

Clicking the gear icon at the top right of the component’s control bar expands the options where you can adjust the component’s features.

  1. Headline - Add a short headline of text to the top of the component.

  2. Image Width - Change the width of article images by percentages.

  3. Image Float - Three options to float images:

    1. Float Left

    2. Alternate left and right

    3. Float Right

  4. Text Wrap - Turn on and off text wrapping around article images.

  5. Small Layout - Toggle the font size and padding of the title between a smaller or larger layout.

  6. Save - Commit any changes to the options.

Floating Images

The Image Float option allows you to float images and videos on different sides of the text content:

  1. Float Left

  2. Alternate left and right

  3. Float Right

 


Sort Accordion Items

Clicking the Sort button at the top right of the component’s control bar allows you to sort the content items into whatever order you choose.

The Sort button will bring up a modal window to Sort the Content Items.

  1. Find and click the title of the item you want to move.

  2. Use the buttons in the right column to arrange the item in the order you want.

  3. Repeat for each item you want to move.

  4. When all items are arranged to your liking, click the blue OK button in the lower right to confirm your choices.


Deleting Accordion Items

Accordions are deleted one content item at a time.

 

  1. Find the item that you want to delete.

  2. Hover your cursor over the item that you wish to delete.

  3. Hovering reveals the control buttons.

  4. Click the red Delete button.

  5. A message will pop up asking for your confirmation and display the item’s title.

  6. If you clicked by mistake, click the gray Cancel button in the lower right and nothing will be deleted.

  7. To confirm deletion, click the blue OK button in the lower right. The window message will update to tell you that the item was deleted and ask to refresh the page. Click OK again.

  8. The page will refresh and the deleted item will be gone.

If you deleted an item by mistake, it can be recovered from Sitecore Recycle Bin.


Was this helpful? We welcome feedback for this Sitecore documentation: Take the User Survey