nilsenpaul/craft-easy-search
Composer 安装命令:
composer require nilsenpaul/craft-easy-search
包简介
Easy Search lets content editors use predefined search queries in Craft's control panel, or 'build' their own.
README 文档
README
Craft's search functionality, powerful as it may be, is not as end user friendly as you'd like it to be. With Easy Search, your content editors can use predefined search queries ("search for all entries with an image field that's not empty") or build their own search query with a user friendly GUI.
⚠️ **This plugin will not be released for Craft 4
We believe that native element index filtering options in Craft 4, in addition to having the ability to create custom sources with filtering applied, makes our plugin obsolete.
Requirements
This plugin requires Craft CMS 3.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require nilsenpaul/craft-easy-search -
In the Control Panel, go to Settings → Plugins and click the “Install” button for Easy Search.
Configuring Easy Search (optional)
If you want to be able to use predefined search queries with Easy Search, create a file in Craft's config folder, named easy-search.php. In this file, you'd add the following:
<?php
return [
'queries' => [
[
'query' => 'title:*',
'label' => 'All items with a title',
'element' => 'craft\\elements\\Entry', // This is optional, and will make Easy Search only show this query on the Entries element index
'source' => 'section:3ae083f5-a8c8-4506-b0cb-3f6469bd254d', // Using the UID of a source (prepended by "section:", "group:" or "folder:"), you can limit a predefined query to certain element sources
],
[
'query' => 'image:*',
'label' => 'All items with an image',
],
[
'query' => '-image:*',
'label' => 'All items without an image',
],
]
];
Brought to you by nils&paul
nilsenpaul/craft-easy-search 适用场景与选型建议
nilsenpaul/craft-easy-search 是一款 基于 Vue 开发的 Composer 扩展包,目前已累计 17.76k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2020 年 02 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「search」 「cms」 「query」 「Craft」 「CP」 「craftcms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nilsenpaul/craft-easy-search 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nilsenpaul/craft-easy-search 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nilsenpaul/craft-easy-search 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel package to retrieve data from Google Search Console
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Indexed Search Autocomplete - Extends the TYPO3 Core Extension Indexed_Search searchform with an autocomplete feature.
Supercharged text field validation.
Query filtering in your frontend
统计信息
- 总下载量: 17.76k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2020-02-13
