定制 tentapress/blocks 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tentapress/blocks

最新稳定版本:0.11.1

Composer 安装命令:

composer require tentapress/blocks

包简介

README 文档

README

Block registry and rendering system for TentaPress pages and posts.

Plugin Details

Field Value
ID tentapress/blocks
Version 0.11.1
Provider TentaPress\Blocks\BlocksServiceProvider

Features

  • Block registry (type → schema + renderer)
  • Block validation on save
  • Full-screen block editor
  • Block list view with inline editing
  • Right-side details panel
  • Block inserter controls
  • Page outline navigation
  • Field types: text, textarea, richtext, select, image, repeater, nested-blocks, link, actions
  • Variant-aware image rendering for image-based blocks when media records are available
  • Optional presentation wrapper metadata (props.presentation) for spacing, alignment, background, and container width
  • Builder preview-safe embed rendering with static thumbnails/placeholders instead of live third-party iframes

Dependencies

None.

Available Blocks

  • Hero
  • Heading
  • Rich Text
  • Image
  • Gallery
  • CTA / Button group
  • Split Image + Content
  • Split Layout (nested child blocks)
  • FAQ (repeater)
  • Embed
  • Divider / Spacer

Split Layout Child Payload

blocks/split-layout stores child blocks in:

  • props.left_blocks (array of block objects)
  • props.right_blocks (array of block objects)

Rules:

  • Nesting depth is capped to one level.
  • Child type blocks/split-layout is intentionally rejected to prevent recursive containers.
  • Admin editor supports inline child controls for scalar field types and repeater rows.

Extending

Themes and plugins can register additional blocks via the block registry.

Development

php artisan tp:plugins sync
php artisan tp:plugins enable tentapress/blocks
composer test
composer test:filter -- BlocksRenderingBaselineTest
composer test:filter -- BlocksEdgeCaseTest

统计信息

  • 总下载量: 156
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固