Accordion
The Accordion Widget allows you to display collapsible content sections. It's perfect for FAQs, grouped content, or keeping your pages clean and easy to navigate.
π§© What is an Accordion?β
An Accordion is a content layout where users can click on a title to expand or collapse a content section underneath. It's useful when you want to organize a lot of content in a compact space.
π¦ Where Can You Use It?β
You can add the Accordion Widget anywhere within your layout using the Astroid Layout Builder. Just insert it into any column as a widget element.
βοΈ Widget Configurationβ
Once added, you can configure the widget through several grouped settings:
π 1. General Settingsβ
β Accordion Itemsβ
This is where you add the content for your accordion. Each item includes:
- Title: The clickable heading
- Content: The text or HTML displayed when expanded
β How to Add Itemsβ
- Click Add Item
- Enter a Title and Content
- Repeat to add as many items as needed
π 1.1 Dynamic Content Settings (Optional)β
Accordion Widget supports Dynamic Content, allowing each accordion item to load content automatically from other sources like Joomla articles, Joomla categories, or Joomla Users.
π§ What is Dynamic Content?β
Instead of manually writing content for each item, you can link it to:
- A specific article
- A category
- Or Users source
βοΈ How to Enable Dynamic Contentβ
- Under each Accordion Item, select Advanced Settings tab
- Expand the Dynamic Content Source selection
- Choose your desired Dynamic Content Source
π§ Available Dynamic Content Sourcesβ
- Joomla Articles
- Joomla Categories
- Joomla Users
π Priority of Contentβ
If Dynamic Content is enabled for an item, it will override the manually written content field.
π Use Case Exampleβ
You want to display a list of tutorials from a Joomla category. Instead of writing each one manually:
- Click to Dynamic icon in each field
- The system will automatically pull and render the Joomla fields in the accordion item
- Select a Joomla Field as the dynamic source
π‘ You can mix static and dynamic content β some items can have manually entered content, and others can pull from dynamic sources.
π¨ 2. Widget Stylesβ
π Styleβ
- Default: Regular look with spacing
- Flush: Borderless, modern compact design
π§ Collapse Behaviorβ
- Open First Item: The first item is open by default
- Close All: All items are collapsed when the page loads
π Always Openβ
- If enabled, users can open multiple items at the same time
π¨ Color Settingsβ
Choose how colors behave:
- Color: Regular state
- Hover: When the mouse hovers
- Active: When the item is opened
You can customize both:
- Text Color
- Background Color
...for each state (normal, hover, active)
βοΈ 3. Typographyβ
Title Optionsβ
Customize fonts for the accordion headers.
Content Optionsβ
Customize fonts for the content inside each accordion section.
π 4. Assignment Settingsβ
Where should this widget appear?
- All Pages: Show everywhere
- No Pages: Hide on all pages
- Selected Pages: Show only on selected menu items
π‘ Tips for Better Useβ
- Great for FAQs or sectioned tutorials
- Use hover and active colors for a more interactive look
- Group related content into multiple accordions for better clarity
β Summaryβ
The Accordion Widget is a flexible, user-friendly way to organize content on your Joomla site. With Astroidβs intuitive settings and styling options, anyone can create beautiful collapsible content without needing to code.