定制 andrekelling/kirby-block-finder 二次开发

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

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

andrekelling/kirby-block-finder

Composer 安装命令:

composer require andrekelling/kirby-block-finder

包简介

Block Finder

README 文档

README

A Kirby 5 Panel plugin that finds where a given custom block type is used across your site.

It adds a Block Finder entry to the Panel menu. Pick a block type and the plugin scans every page (in every language if so) for that block in a configurable blocks field, listing each page, the language, the number of occurrences, and a direct link into the Panel.

screenshot

Motivation

Did you ever found yourself asking: How to find out if a block is used on my customers’ website, which is just accessible via FTP?

Features

  • Panel view listing all available block types from your blueprints of a provided blocks typed field
  • Searches every page returned by site()->index()
  • Multi-language aware — reports occurrences per language
  • Shows occurrence count and a deep link to the page in the Panel
  • Configurable blocks typed field and blocks field name for a page template

Limitations

  • Does not support nested blocks. Currently, it expects that the block-containing field is living at the root of a pages fields.
  • Did not test with a huge number of pages. A batching process would be more suited for that.

Requirements

  • Kirby 5.1+ (just tested with 5.1 probably works on previous versions too)

Installation

Download

Download and copy this repository to /site/plugins/kirby-block-finder.

Composer

composer require andrekelling/kirby-block-finder

Usage

  1. Open the Panel and choose Block Finder from the menu.
  2. Select a block type from the dropdown.
  3. The matching pages are listed with their language, occurrence count, and a link to open the page in the Panel.

Options

Override options in site/config/config.php:

return [
    'andrekelling.kirby-block-finder.blueprintName' => 'fields/builder',
    'andrekelling.kirby-block-finder.fieldName' => 'myBlocksField',
];
Option Default Description
blueprintName fields/builder Name of the blocks type field blueprint file.
fieldName blocks Name of the blocks field to search on a page.

Development

The Panel view is built from src/index.js with kirbyup.

# watch and rebuild on change
npm run dev

# production build
npm run build

The build output is written to index.js, which is loaded by the plugin.

License

MIT © André Kelling

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固