Create and manage Concrete CMS packages. Use this skill when the user asks to create a custom package or manage existing packages.
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Create and manage Concrete CMS packages. Use this skill when the user asks to create a custom package or manage existing packages.
Building Packages
Concrete CMS packages are modular components that extend the functionality of the platform. This skill is essential for developers who want to create custom functionality or integrate third-party services into their Concrete CMS projects.
Basic Workflow for Package Development
Follow these steps to develop a custom package in Concrete CMS:
Initialize the Package Directory:
Create a new directory under packages/ with a lowercase, underscore-separated name (e.g., packages/my_custom_package).
Create the Package Controller:
Create a controller.php file in the package root. Define the package handle, version, and basic information.
Install the Package:
Use the Concrete CMS Dashboard or CLI (concrete/bin/concrete c5:package:install my_custom_package) to install your package.
Update and Refine:
When making changes to the package structure (like adding a new block type), update the $pkgVersion in controller.php, implement the upgrade() method, and run the update from the Dashboard or CLI (concrete/bin/concrete c5:package:update my_custom_package).