๐งฉ 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
Dynamic Placeholder Variable Injection
making your logic blocks smarter, reusable, and adaptive
What Is It?
When writing reusable Custom Code in JCB, you can include special variables or tags known as โplaceholders.โ These placeholders are evaluated and replaced during the compile process. For example:
- [[[view.name]]] โ current view name
- [[[field.name]]] โ active field identifier
- [[[joomla.version]]] โ targeted Joomla version
- [[[component.name]]] โ your component's system name
- [[[custom.myToken]]] โ custom metadata or config tokens
This means your custom code blocks remain flexible and reusable across different views or components โ adjusting to the compilation context automatically.
Where Can They Be Used?
- โ Inside Custom Code blocks
- โ Inside Snippets
- โ Inside Templates & Layouts
- โ Inside field save/get logic
- โ Inside Controller overrides
- โ Inside Metadata & README auto-generation
Examples
- Use [[[view.name]]] to load a script unique to the current view
- Use [[[joomla.version]]] to conditionally adapt logic for Joomla 3, 4, or 5
- Use [[[field.label]]] to dynamically document behavior or set context-aware JavaScript logic
- Use [[[component.name]]] to ensure consistent namespace references
Key Benefits
- ๐ Code Reuse Across Contexts: Write one snippet or logic block and inject it anywhere โ dynamically adapting to the context.
- ๐ง Context-Aware Logic: Custom Code that behaves differently depending on where it's compiled into.
- ๐ Consistent Naming: Auto-injected values reduce the need for manual namespace declarations.
- โ๏ธ Metadata Automation: Use placeholders inside README.md, LICENSE, or config templates to auto-document builds.
- ๐ Joomla-Aware Tokens: Adapt your logic to changes across Joomla versions or target-specific features via dynamic tokens (JPK).
Supported Placeholder Types
- Component-level (name, title, namespace)
- View-level (name, type, access)
- Field-level (name, label, value)
- Joomla version & compatibility
- Custom user-defined variables (via GUI or hardcoded)
Why It Matters
- โ Removes hardcoding โ one code block fits many uses
- โ Keeps your logic DRY and modular
- โ Encourages logic abstraction and version-resilience
- โ Enables per-context customization at scale
Conclusion
Dynamic placeholder variable injection is a core power of JCBโs compilation system โ making your logic blocks smarter, reusable, and adaptive. Combined with multi-context binding and insert/replace tags, it gives you the flexibility of a templating language with the control of raw PHP โ all inside a graphical interface. Write logic once, inject it everywhere โ contextually and intelligently.
Summary
JCB allows you to define dynamic placeholders inside Custom Code blocks that are automatically replaced with real values during component compilation โ enabling context-aware logic insertion that adjusts based on the build environment, Joomla version, view, field, or any dynamic entity reference.