Reveal hidden content when title is clicked.
Last Reviewed: September 28, 2022
Never put a collapsible component inside another collapsible component. It will break your page.
These components are treated as headings (like a Title).
There is only one tab for settings.
You can immediately adjust settings in Edit Mode, but to modify content inside the container additional steps are required.
With the exception of another Collapsible Container, most of our components work very well in a Collapsible Container, including Column Controls.
Title: Enter a descriptive heading. By default "Collapsible Content" will be shown.
Start Mode: Choose your preference between Collapsed (default) or Expanded.
ID: Enter to build an anchor for targeted linking. Optional.
Exclude from "on this page" lists: Prevents this title from being included in the On This Page component.
Title size: Required. Sets the heading level and associated size and styling. Choose from:
Accessible heading level override: To satisfy accessibility guidelines (e.g. heading hierarchy), once the Title Size is set you can then change the actual heading level in the HTML code to a different value, while leaving the visible styling as is. Choose from:
To satisfy heading hierarchy limitations, this component's heading level can be adjusted independnetlly of its visible styling. Adjust the 'Accessible heading level override’ setting as needed.
Headings, provided by the UBCMS Title component, provide structure to the content on your Web pages. They break up your content into meaningful sections, define its hierarchical structure and provide handy anchors for deep linking or the On This Page component. WebAIM.org calls this semantic structure. Done effectively, this structure allows humans, screen readers and automated search engines to easily digest your page.
Headings in the UBCMS are generally constructed using Title and Collapsible Content Container components.
Best practice: To facilitate navigation and understanding of the overall document structure by both users and search engines, headings should be nested; e.g., one H1 followed by one or more H2's, each H2 followed by one or more H3's, each H3 followed by one or more H4's, and no jumps of more than one step (e.g. an H2 should not be followed by an H4).
For example,
To link to a Collapsible Content Container, first set an ID in its properties, which becomes an anchor. You can now build a direct link to that container, as hashtagID (or /content/.../page#ID), and when the page loads, it will display the container in its expanded mode.
For example, the following link should load the second of the examples at the bottom of this page in expanded mode:
When you build a targeted link to a Collapsible Content component using its ID, the component will automatically expand when the page is loaded to that location.
Similarly, if you deep link to content that is contained WITHIN a Collapsible Content component, the page will load with that normally hidden content revealed.
Some text.
Some text.
Some text.