Create and manage Concrete CMS packages. Use this skill when the user asks to create a custom package or manage existing packages.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
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).