A Collapsible Item is a component that includes a title and a body that can be expanded / collapsed.
On this page:
- Content
- Placement
- Inline Collapsible Item
Content
Creating a Collapsible Item
- Go to Manage > Structure > Custom Block Library
- Click Add Custom Block
- Choose Collapsible Item
- Provide a Title
- Provide a Body
- This field uses the Rich Text Editor
- Optional: Toggle Expanded
- By default collapsible items are collapsed. If you want to change it to be expanded by default, check this box
- Save
Editing a Collapsible Item
- Go to Manage > Structure > Custom Block Library
- Find the Collapsible Item you want to edit
- Tip: Use the filter to refine the list and make your search easier by setting the Block type to Collapsible Item and/or adding a keyword from the title.
- Once you find the block you wish to edit, click Edit
- You will be taken to the block edit screen where you can make your desired changes
- Changes made to the contents of the block will be reflected in all instances of the block
- Save
Deleting a Collapsible Item
Please note that deleting content is permanent and irreversible.
- Go to Manage > Structure > Custom Block Library
- Find the Collapsible Item you want to delete
- Tip: Use the filter to refine the list and make your search easier by setting the Block type to Collapsible Item and/or adding a keyword from the title.
- Once you find the block you wish to edit, click the arrow down button next to edit and click Delete
- You will be taken to a confirmation page. Click Delete to confirm.
- Warning: As with all deletions in Drupal, deleting pages is permanent and cannot be undone.
- Save
Deleting a block does not automatically unplace / remove it from the page it was placed in. The block will not be visible to public view. Editors will see a warning for a missing block when they edit the layout and should remove it to clean up.
Placement
Placing and unplacing a Collapsible Item in basic pages is the same process as any block.
Placing a Collapsible Item
- Visit the page you wish to place the Collapsible Item in
- If you are logged in and able to edit, you should see the local task tabs and be able to click Layout
- In the area you want the block to appear, click Add Block
- The list of available blocks will then appear at the right hand side of the page. Search for the Collapsible Item you want to place
- Optional: Configure the block
- With your block placed, click the contextual edit button (Pencil Icon) for the block and select configure.
- Make your desired configurations
- Click Update
- Click Save Layout
Configuring a placed Collapsible Item
- Visit the page the Collapsible Item you wish to configure is in
- If you are logged in and able to edit, you should see the local task tabs and be able to click Layout
- Hover over the block you wish to configure and click the contextual edit button (Pencil Icon) and click Configure
- Make your desired configurations
- Click Update
- Click Save Layout
Unplacing / Removing a placed Collapsible Item
- Visit the page you the Collapsible Item you wish to remove is in
- If you are logged in and able to edit, you should see the local task tabs and be able to click Layout
- Hover over the block you wish to remove and click the contextual edit button (Pencil Icon) and click Remove Block
- It will simply remove the block from the page
- You will be prompted to confirm. Click Remove to confirm
- Click Save Layout
Inline Collapsible Item
Please refer to Blocks > Custom Block (Global vs Inline) for information on the differences.
Creating & Placing an Inline Collapsible Item
- Visit the page you wish to place the Inline Collapsible Item in
- If you are logged in and able to edit, you should see the local task tabs and be able to click Layout
- In the area you want the block to appear, click Add Block
- Click Create custom block
- Choose Collapsible Item
- Fill in the fields and configure as desired
- Click Add Block
- Click Save Layout
Editing & Configuring an Inline Collapsible Item
- Visit the page you the Inline Collapsible Item you wish to edit and configure is in
- If you are logged in and able to edit, you should see the local task tabs and be able to click Layout
- Hover over the block you wish to configure and click the contextual edit button (Pencil Icon) and click Configure
- Make your desired content edit configurations
- Click Update
- Click Save Layout
Deleting an Inline Collapsible Item
Please note that deleting content is permanent and irreversible.
- Visit the page you the Inline Collapsible Item you wish to delete is in
- If you are logged in and able to edit, you should see the local task tabs and be able to click Layout
- Hover over the block you wish to remove and click the contextual edit button (Pencil Icon) and click Remove Block
- Warning: This will remove the block from the page and delete its contents. As with all deletions in Drupal, this is permanent and can't be undone.
- You will be prompted to confirm. Click Remove to confirm
- Click Save Layout