neosidekick/ui-reverse-search
Composer 安装命令:
composer require neosidekick/ui-reverse-search
包简介
This package extends the Neos UI document node search with a URI search function
README 文档
README
Did you ever ask yourself why you can search for the title in the Neos UI document tree, but not by public URI or node path ❓ Well, we got you ❗
This package extends the document tree search with an ability to search by URI or node path. Just copy the URI from your browser or the node path into the search field and the document will be highlighted in the document tree, if found 😍
Installation
NEOSidekick.UiReverseSearch is available via Packagist. Add "neosidekick/ui-reverse-search" : "^1.0" to the require section of the composer.json or run:
composer require neosidekick/ui-reverse-search
We use semantic versioning, so every breaking change will increase the major version number.
Configuration
Some Neos installations use a suffix to the routes, like Neos.Demo uses .html. Our package tries to get this information first from
Neos.Flow.mvc.routes.Neos.Neos.variables.defaultUriSuffix. If the value in this configuration is not the same as the one configured in your
Routes.yaml, you can use our setting NEOSidekick.UiReverseSearch.overrideNodeUriPathSuffix to override the uri suffix for the resolving
in this package.
How does it work?
The Neos UI uses FlowQuery and the Neos\Neos\Ui\FlowQueryOperations\SearchOperation to filter the document nodes.
Our package extends and overrides this implementation by first checking if the search term matches
the URI structure. If this is the case, it uses Neos\Neos\Routing\FrontendNodeRoutePartHandler to
resolve the URI to a node context path. The resolving for the node path works quite similar, except for that
we don't have to first resolve the URI to a node context path beforehand but we directly look up the node
by the given node path.
Known limitations
When resolving the node by its public URI, we discard the information about the dimensions and only work with the current context of the UI. So if your UI is in the German language dimension, and you paste the public URI of a document in the Englisch language dimension, our package will find its sibling in the German language dimension, if existent.
neosidekick/ui-reverse-search 适用场景与选型建议
neosidekick/ui-reverse-search 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.95k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 05 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 neosidekick/ui-reverse-search 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 neosidekick/ui-reverse-search 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 15
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-05-20