承接 sanotto/atk-mod-global-search 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sanotto/atk-mod-global-search

Composer 安装命令:

composer require sanotto/atk-mod-global-search

包简介

ATK Module to enable searching all nodes

README 文档

README

A module that enables searching all nodes.

Installation

Just require it with:

composer require sanotto\atk-mod-global-search @dev

And then, include the module in your config\atk.php like this:

return [
    'language' => 'en',
 
    'modules' => [
    App\Modules\Setup\Module::class,
    App\Modules\Security\Module::class,
    App\Modules\Home\Module::class,
    sanotto\atkGlobalSearch\Module::class,
.
.
.

Using

A new input box and search butto will appear next to the logout button. Entering a word an pressing the search button will search for that word in every node of your application. The word will be searched in every attribute that have the AF_SEARCHABLE_FLAG.

A Requirement ...

Every node has to have a descriptor definition in order to appear in the results list.

A Bonus ...

You can implement a method called searchdescriptor in your node i.e.:

public function searchdescriptor($record)
{
    $content = "This is the search description for this record:";
    $content.= "<hr>";
    $content.= "Name:".$record['name'];
    $content.= "<hr>";
    return $content;
}

So you can return the description formatted as you wish, if you do not implement searchdescriptor in your node, the standard descriptor will be used instead. Using a custom search descriptor allows for very fine grained result display.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固