定制 sitegeist/zombiehunt 二次开发

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

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

sitegeist/zombiehunt

最新稳定版本:v1.0.4

Composer 安装命令:

composer require sitegeist/zombiehunt

包简介

Find undead (hidden and long untouched) content and help killing it for good

README 文档

README

Find and destroy undead contents

Often times editors will only hide obsolete content and never actually delete it. Over time this leads to hidden content that is so old no one remembers who wrote it, why and whether it can finally be removed ... we call this ZOMBIE content.

This package visualizes zombie contents to the editors and allows to automatically destroy contents that have been zombies for a while. Of course the time period for hidden contents to turn into a zombie is configurable as well as the period for zombie destruction.

Authors & Sponsors

The development and the public-releases of this package is generously sponsored by our employer https://www.sitegeist.de.

Settings

The zombification- and destruction period can be defined via settings. By default, hidden contents that have not been touched for a year will turn to zombie content and are due to destruction after another year.

Sitegeist:
    ZombieHunt:
        # hidden nodes turn into zombies after this period
        zombificationPeriod: 31536000
        # zombie-nodes start are due to destruction after this period
        destructionPeriod: 31536000
        # the label for zombie-nodes
        zombieLabel: '🧟'
        # label for zombie-nodes that are due to destruction
        zombieToDestroyLabel: '🔥🧟🔥'

Neos Backend

In the document tree and content structure zombie nodes are marked with "🧟" respectively "🔥🧟🔥" for zombie contents that are due to destruction. In addition, zombie contents are marked in the backend rendering in the content tree and the content area.

Cli Commands

The following commands allow to find and destroy zombies.

./flow zombie:detect

Detect zombies in the given site. Will return an error code if zombie contents that is due to destruction is detected.

USAGE:
./flow zombie:detect [<options>]

OPTIONS:
--site-node          node-name of the site to scan, if not defined all sites are used
--dimension-values   json of the dimension values to use, otherwise default. Example '{"language":["de"]}'

./flow zombie:destroy

Remove zombie contents that are due to destruction

USAGE:
  ./flow zombie:destroy [<options>]

OPTIONS:
  --site-node          node-name of the site to scan, if not defined all sites are used
  --dimension-values   json of the dimension values to use, otherwise default. Example '{"language":["de"]}'
  --dry-run            option to output list of nodes to be deleted without actually deleting them

Installation

Sitegeist.ZombieHunt is available via packagist. Just run composer require sitegeist/zombiehunt to install it. We use semantic versioning so every breaking change will increase the major version number.

Contribution

We will gladly accept contributions. Please send us pull requests.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-04-19