iqual/iq_content_publishing_contentbird
Composer 安装命令:
composer require iqual/iq_content_publishing_contentbird
包简介
Provides contentbird integration for the Content Publishing framework. Enables syncing Drupal content statuses and publishing workflows with the contentbird platform.
README 文档
README
Provides contentbird integration for the Content Publishing framework. Enables publishing Drupal content to contentbird as articles, wiki pages, or social media posts.
Requirements
- Drupal ^11
- iq_content_publishing ^1 — The base Content Publishing framework
- iq_contentbird_api dev-main — Provides the contentbird API client and centralized API token management
Installation
Install via Composer:
composer require iqual/iq_content_publishing_contentbird
Enable the module:
drush en iq_content_publishing_contentbird
Configuration
1. Configure the Contentbird API Token
API token authentication is managed centrally by the iq_contentbird_api module. Navigate to:
Administration » Configuration » Contentbird API settings (
/admin/config/services/contentbird-api)
Enter your contentbird API token and save.
2. Create a Publishing Platform Configuration
Navigate to:
Administration » Configuration » Content Publishing » Platforms
Add a new platform configuration and select Contentbird as the platform type.
The credentials form will display the current connection status (connected/not connected) and provide a link to the Contentbird API settings if configuration is needed.
3. Configure Platform Settings
In the platform configuration form, set the following:
| Setting | Description |
|---|---|
| Contentbird Project | Select the contentbird project to publish content to. This determines which social profiles are available. |
| Status | The contentbird content status to set when content is sent (e.g., "Draft", "In Review"). Only unpublished statuses are shown. |
| Send published URL | When enabled, the canonical Drupal URL of the node is sent to contentbird along with the content. |
4. Fetch Available Content Statuses (Optional)
On the platform configuration list, use the Fetch Content Statuses operation to retrieve all available content status IDs from your contentbird account. These IDs are displayed as status messages for reference.
Features
Multi-Tool Platform
This module implements the MultiToolPlatformInterface, providing multiple publishing tools within a single platform:
Content Tools
Dynamically discovered from your contentbird account. Each content type (Wiki, News, Blog, etc.) becomes a separate publishing tool:
- Format:
content:{type_id}(e.g.,content:1for Wiki) - Output schema: Title, Summary/meta description, HTML content body
- AI instructions: Tailored prompts for each content type
Social Media Tools
Discovered from the connected social profiles in your selected contentbird project:
- Format:
social:{profile_id} - Supported platforms: Facebook, LinkedIn, X (Twitter), Instagram, and others configured in contentbird
- Output schema: Post content (plain text), optional images (up to 3), status (draft/publish/publish_at), scheduled time
- AI instructions: Platform-specific prompts for engaging social posts
Content Publishing Workflow
When content is published through the publishing workflow, the plugin:
- Updates existing content in contentbird if a contentbird ID is associated with the node.
- Creates new content in contentbird if no existing ID is found, and stores the returned contentbird ID for future updates.
- Syncs metadata including the title, summary/meta description, and HTML content body.
- Sets the content status based on the configured status.
Social Media Publishing
For social media tools, the plugin:
- Creates a social post via the contentbird API, targeting the selected profile/page.
- Supports scheduling with draft, publish immediately, or publish at a specific time.
- Attaches images/videos to the post when provided.
- Includes the Drupal URL as a promotion link (for platforms that support it like Facebook and LinkedIn).
AI-Assisted Content Transformation
The plugin provides output schemas and AI instructions for the Content Publishing framework's AI integration:
Content tools output schema:
- Title — SEO-friendly content title
- Summary — Meta description (max 160 characters)
- Content body — Clean HTML content
Social tools output schema:
- Post content — Platform-appropriate text (no HTML)
- Images — Optional image attachments
- Status — Publishing status
- Scheduled time — For scheduled posts
Available tokens in AI instructions:
[node:title]— The content title[node:url]— The full URL to the content[node:summary]— The content summary[node:content_type]— The content type label
Contentbird ID Storage
The contentbird content ID is stored on the node using one of two strategies:
- Dedicated field — If the node has a
field_contentbird_idfield, it is used directly. - Key-value storage — As a fallback, the ID is stored in Drupal's key-value store under the
iq_content_publishing_contentbirdcollection.
API Reference
Plugin ID
contentbird
Plugin Interfaces
ContentPublishingPlatformBase— Base platform functionalityMultiToolPlatformInterface— Multi-tool support (content types + social profiles)
Key Methods
| Method | Description |
|---|---|
getAvailableTools() |
Returns available content types and social profiles from the API |
getOutputSchemaForTool() |
Returns tool-specific output schema (content vs social) |
getDefaultAiInstructionsForTool() |
Returns tool-specific AI prompts |
publish() |
Routes to content creation/update or social post creation |
License
GPL-2.0-or-later
iqual/iq_content_publishing_contentbird 适用场景与选型建议
iqual/iq_content_publishing_contentbird 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「drupal」 「content publishing」 「contentbird」 「CMS integration」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 iqual/iq_content_publishing_contentbird 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 iqual/iq_content_publishing_contentbird 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 iqual/iq_content_publishing_contentbird 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A block that displays featured content - large image, title, description and link.
Provides an add-on purchasable entity.
Drupal integration module for the Kalastatic prototyping and styleguide tool
Provides a base set of configuration and module dependencies for starting new Drupal projects.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
This module extends Drupal Migrate framework.
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-03-04