Plasmic Integration Module
Overview
The Plasmic Integration module for Drupal seamlessly integrates Plasmic components into your Drupal site.
Plasmic is a powerful visual builder for designing and creating dynamic, responsive
components and pages. With this module, you can embed Plasmic components either as full pages, content pages or
as fields within your content types and custom blocks, enabling a streamlined, visually-driven development process.
Features
- Custom Field Type: Add Plasmic components to any Drupal entity with our custom
plasmic_componentfield. - Dynamic Properties: Easily configure component properties such as mode (published/preview), hydration, and embedded hydration.
- Flexible Slot Management: Define unlimited key-value pairs for component slots, dynamically added through the form interface, easily passing content from Drupal CMS into Plasmic component
- Entity Integration: Support for Plasmic Full Page and Plasmic Content entities, enabling you to use Plasmic for both full-page layouts and individual content pieces.
- Custom Blocks: Create custom Plasmic blocks available in the Custom Block Library, enabling you to add Plasmic components as Drupal blocks (e.g.: header/footer, etc...)
- Cache Management: Integrated caching for Plasmic HTML output to optimize performance, with an admin option to clear the cache.
Installation
- Download and Enable:
- Download the module and place it in your Drupal installation under
modules/custom. - Enable the module via the Drupal admin UI or using Drush:
drush en plasmic -y.
- Download the module and place it in your Drupal installation under
- Configuration:
- Navigate to the module configuration page at
/admin/config/system/plasmic. - Enter your Plasmic Project ID and Public API Token.
- Navigate to the module configuration page at
- Adding Fields:
- Add the
plasmic_componentfield to any content type or custom block. - Configure the field settings to specify component properties and slot values.
- Add the
- Creating Entities:
- Create Plasmic Full Page or Plasmic Content entities from the
admin/content/plasmicpage.
- Create Plasmic Full Page or Plasmic Content entities from the
Usage
- Embedding Components:
- When adding or editing content, fill in the Plasmic component field with the required component name and properties.
- Use the dynamic slot fields to provide values for your Plasmic component slots.
- Custom Blocks:
- Create custom blocks with embedded Plasmic components to use across various regions of your site.
Contribution
We welcome contributions from the community! If you encounter any issues or have suggestions for improvements, please create an issue in the issue queue.
Maintainers
Supporting organizations:
Project information
- Project categories: Content display, Integrations
- Created by tamerzg on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
1.0.0-beta1
released 9 July 2024
Works with Drupal: ^8 || ^9 || ^10
Install:
Development version: 1.0.x-dev updated 31 May 2024 at 18:30 UTC
