Button
The Button Widget in Astroid Framework allows you to create stylish, customizable buttons that link to internal or external pages. You can also configure icons, styles, sizes, and even dynamic content for enhanced flexibility.
π Where to Find Itβ
Navigate to your Astroid Layout Builder:
- Go to your Joomla Administrator Panel
- Navigate to:
System
βSite Template Styles
β Click on your Astroid template - Click the βTemplate Optionsβ button
- Open the Layout tab
- Launch the Layout Builder
βοΈ General Settingsβ
These settings apply to each button you add:
Titleβ
- This is the visible label of the button.
Linkβ
- The URL the button will point to.
- You can use any internal or external link (e.g.,
https://astroidframe.work/
).
Link Targetβ
- Choose how the link opens:
Default
: Follows the normal behavior._blank
: Opens in a new window/tab._parent
: Opens in the parent frame._top
: Opens in the full window.
Iconβ
- Add an icon next to the button label.
- You can choose from the Astroid icon set.
Icon Positionβ
- Set the icon position:
First
: Before the text.Last
: After the text.
Style Presetsβ
- Choose from default Bootstrap button styles:
- Primary, Secondary, Success, Danger, Warning, Info, Light, Dark, Link, Text, Custom.
Custom Style (when selected)β
If "Custom" is selected:
- Color / Hover Mode: Choose between setting regular or hover colors.
- Text Color: Customize button text color.
- Background Color: Customize button background.
- Outline: Toggle an outline style.
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 button 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.
π¨ Widget Stylesβ
Button Groupβ
- Toggle to group multiple buttons together for aligned display.
Button Sizeβ
- Default
- Large (
btn-lg
) - Small (
btn-sm
) - Custom
- Font family, font size, and line height can be adjusted.
- When size is set to Custom, you can manually adjust padding.
Border Radiusβ
- Choose from:
- Rounded (default)
- Square (
rounded-0
) - Circle (
rounded-pill
)
Gutterβ
- Adjust spacing between buttons in group layout.
π Page Assignmentβ
Control where the button widget appears:
- All Pages
- No Pages
- Selected Menu Items
When choosing βSelected Menu Itemsβ, a menu selector will appear.
β Summaryβ
Button Widget offers:
- Customizable labels, links, icons
- Bootstrap styling & custom design
- Flexible layout & visibility settings
- Integration with dynamic content
Use this widget to enhance user navigation and call-to-action performance on your Joomla site.