tentapress/content-types
最新稳定版本:0.2.0
Composer 安装命令:
composer require tentapress/content-types
包简介
README 文档
README
Admin-defined publishable content types for TentaPress.
Plugin Details
| Field | Value |
|---|---|
| ID | tentapress/content-types |
| Version | 0.2.0 |
| Provider | TentaPress\\ContentTypes\\ContentTypesServiceProvider |
Purpose
Model structured content beyond pages and posts, such as case studies, team members, services, events, and locations, using a first-party TentaPress plugin.
Features
- Admin-managed content type builder with plugin-owned persistence
- Per-type base paths for archive and single routes
- Publishable entries with blocks-based body authoring
- Custom field support for text, textarea, number, boolean, date/time, select, and relation fields
- Optional relation sources for Pages and Posts via the shared content reference registry
- Plugin-owned JSON API with per-type visibility controls
- Theme-aware single rendering with plugin fallbacks
Admin Menu
| Label | Parent | Route | Capability |
|---|---|---|---|
| Content Types | Structure |
tp.content-types.index |
manage_content_types |
Configuration
This plugin is intentionally self-contained. It does not require root config changes or .env values for normal use.
Dependency Behaviour
- Requires
tentapress/admin-shell,tentapress/blocks, andtentapress/system - If disabled, the plugin’s routes, admin UI, and runtime behaviour disappear cleanly
headless-api,seo,workflow, andsearchare not required for this first release
Development
php artisan tp:plugins sync
php artisan tp:plugins enable tentapress/content-types
php artisan migrate --force
./vendor/bin/pint --dirty
composer test:filter -- ContentTypes
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-20