๐งฉ Architecture & Core Logic
- Super Powers
- Joomla Powers
- Compile Native Components, Plugins & Modules
- Multi-Version Support
- Conditional Logic Injection
- Reusable Admin Views
- Dynamic GET Builder
- Round-Trip Code Integration
- Custom Admin Views
- Site Views
- Dynamic Dashboards
- Model Linking Between Views
- Shared Field Reuse Across Views
- Drag & Drop Field Mapping
- Dynamic Field Visibility
- Independent Packaging
๐ Joomla CMS Integration
๐งฑ Custom Code System (Powerful Dual Feature)
๐ Field Type System
๐ Snippets, Templates, Layouts, Libraries
- Snippets Reusable Html Blocks
- Layouts Reusable Php Render Templates
- Templates Page Level Views Linked To Custom Admin Site Views
- Libraries JS CSS Assets Linked To UI
- CDN Local Toggle For Library Delivery
- Media Folder Injection With Override Support
- Repository Push Pull Reset Workflow
- Init Snippets Layouts Templates Via Gui
๐ฆ Packages
๐งฉ Architecture & Core Logic
๐ File & Code Management
๐ง Code Reuse & Blueprints
๐ Joomla CMS Integration
๐จ Visual GUI & UX
๐ Internationalization
๐ฆ Packaging & Distribution
โ๏ธ Compiler Engine Features
๐งฑ Custom Code System
๐ Field Type System
๐ Dynamic GET (Visual SQL Engine)
๐ Snippets, Templates, Layouts, Libraries
๐ Documentation & Metadata
๐ Analytics & Insights
๐งฉ Architecture & Core Logic
- Super Powers
- Joomla Powers
- Compile Native Components, Plugins & Modules
- Multi-Version Support
- Conditional Logic Injection
- Reusable Admin Views
- Dynamic GET Builder
- Round-Trip Code Integration
- Custom Admin Views
- Site Views
- Dynamic Dashboards
- Model Linking Between Views
- Shared Field Reuse Across Views
- Drag & Drop Field Mapping
- Dynamic Field Visibility
- Independent Packaging
๐ Joomla CMS Integration
- Token Integration
- ACL Per View, Field, Item
- Field-Based Joomla Config Generation
- Support For Joomla Categories/Tags/Custom Fields
- CLI-Ready Components
- Joomla Update Server Integration
- Version-Aware Language String Compilation
- Remote Publishing to Custom Repo Update Streams
๐ Field Type System
- Field Types Define Templates And Data Types
- Gui Defined Rules Required Unique Nullable
- Save Get Hooks Per Field
- Database Schema Auto Generated From Field Settings
- Per Display Field Rendering Config List Edit
- Create Dynamic Models With Modals Selectors
- Conditional Js And Css Per Field
๐ Snippets, Templates, Layouts, Libraries
- Snippets Reusable Html Blocks
- Layouts Reusable Php Render Templates
- Templates Page Level Views Linked To Custom Admin Site Views
- Libraries JS CSS Assets Linked To UI
- CDN Local Toggle For Library Delivery
- Media Folder Injection With Override Support
- Repository Push Pull Reset Workflow
- Init Snippets Layouts Templates Via Gui
Snippets GUI
Create and manage reusable HTML, PHP, or JavaScript code blocks through a visual interface โ and inject them anywhere in your Joomla component.
What Is the Snippets GUI?
The Snippets GUI in Joomla Component Builder (JCB) provides a visual interface for creating modular, reusable blocks of code that can be dynamically injected into your layouts, templates, or logic structures.
Think of snippets as โsmart partialsโ โ blocks of content that may include variables, conditionals, or logic placeholders, which are inserted into Site Views, Templates, Layouts, and Custom Admin Views.
Summary
A visual tool to create reusable HTML/PHP/JS fragments โ bindable to layouts, templates, and views.
Core Capabilities
- ๐โReuse Across Layouts & Templates
Snippets can be injected into multiple places across your component for consistency and modular design. - ๐โBindable to Views or Layout Regions
You can assign snippets to specific regions or layout slots via GUI, controlling when and where they appear. - ๐ฅโInsert via Placeholders
Insert snippets using dynamic placeholder tags in templates or HTML, with automatic resolution during compilation. - ๐ง โSupports Logic and Tokens
Snippets can include conditional logic, Joomla tokens, user data, or variable replacements using JCBโs placeholder syntax. - ๐งฉโTemplate/Component Reusability
Snippets are managed as first-class JCB entities, meaning they can be exported, reused across blueprints, version-controlled, and reset from a repository. - ๐ฆโEntity Integration
Snippets are injected into components at compile time and follow the build rules โ respecting overrides, versioning, and custom scripting logic.
Use Cases
- Display custom blocks (e.g., tooltips, modals, cards) inside admin or site views
- Inject reusable JS code blocks into views
- Output variable-bound text or media blocks
- Integrate 3rd-party widgets or buttons (YouTube embeds, chart libraries, etc.)
- Add access-controlled blocks (e.g. "Only show this if user is admin")
How To Create a Snippet
- Navigate to Snippets inside JCB
- Define a name and optional description
- Write your content block using HTML, PHP, or JavaScript
- Use JCB placeholders (e.g.
{username}
,{item.id}
, etc.) - Access the snippet in any Template, Layout, or Site View
Advanced Options
- Define parameters that are passed in via the placeholder
- Enable or disable round-trip support (for editable snippets post-build)
- Nest snippets within other snippets or templates
- Attach conditionals for ACL-based or context-based rendering
Round-Trip Support
Snippets, like Custom Code blocks, support insert/replace tags, meaning if you modify the compiled output (e.g. in VS Code), JCB can pull your changes back into the database when re-importing the file.
This makes your snippets editable both via GUI and code โ ideal for collaborative workflows.
Versioning & Repositories
- Snippets can be exported and tracked via Git
- Share snippets across multiple JCB projects using blueprint packaging
- Reset snippets from central repositories
- Fork or extend existing snippet libraries
Related Features
- Layout Builder: Assign snippets to layout regions
- Templates: Bind snippets to component-wide output structures
- Custom Code System: Combine snippet output with reusable code logic
- Libraries: Attach JS/CSS that powers your snippet interactions