neos/timeable-node-visibility
Composer 安装命令:
composer require neos/timeable-node-visibility
包简介
Enable and disable nodes at a specific time.
README 文档
README
Note
This repository is a read-only subsplit of a package that is part of the Neos project (learn more on www.neos.io).
If you want to use Neos, please have a look at the Neos documentation
Documentation
The Timeable Node Visibility package allows you to activate or deactivate nodes at a specific time.
Adding the Neos.TimeableNodeVisibility:Timeable nodetype mixin as superType to your nodetype definition will enable
the feature for your nodetype. The mixin will add the two properties enableAfterDateTime and disableAfterDateTime
to configure, when your nodetype has to be enabled or disabled.
- NodeType Mixin:
Neos.TimeableNodeVisibility:Timeable
- Properties:
enableAfterDateTime(DateTime)disableAfterDateTime(DateTime)
- Per default the mixin is already applied to following nodetypes:
Neos.Neos:DocumentNeos.Neos:Content
An asynchronous job in background is (see: Run the background job) checking if a node need to be enabled or disabled an will execute that as a command in the ContentRepository.
Install Package
You can install the package with composer.
composer require neos/timeable-node-visibility
Run the background job
There are two ways of running the background job. Each way uses a dedicated command, provided by the package.
1. Run in a cronjob periodically each minute / each five minutes. The command stops after each run and need to get re-executed in your favorite time frame.
COMMAND: neos.timeablenodevisibility:timeablenodevisibility:execute USAGE: ./flow timeablenodevisibility:execute [<options>] OPTIONS: --content-repository contentRepository --quiet quiet
2. Run as daemon for a longer period. The command keeps running for the given time (--ttl) and checks every interval (--interval) for new nodes to enable or disable.
COMMAND:
neos.timeablenodevisibility:timeablenodevisibility:rundaemon
USAGE:
./flow timeablenodevisibility:rundaemon [<options>]
OPTIONS:
--content-repository The content repository identifier. (Default: 'default')
--ttl The time to live for the daemon in seconds. Set to '0'
for infinite. (Default: '900')
--interval Interval in seconds, when the command has to get
executed. (Default: '60')
--quiet Set to false if you need a more verbose output.
(Default: 'true')
Contribute
If you want to contribute to Neos, please have a look at https://github.com/neos/neos-development-collection - it is the repository used for development and all pull requests should go into it.
neos/timeable-node-visibility 适用场景与选型建议
neos/timeable-node-visibility 是一款 基于 Gherkin 开发的 Composer 扩展包,目前已累计 1.61k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2024 年 02 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 neos/timeable-node-visibility 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 neos/timeable-node-visibility 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 5
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-02-10