2017 © Pedro Peláez
 

library atk-mod-global-search

ATK Module to enable searching all nodes

image

sanotto/atk-mod-global-search

ATK Module to enable searching all nodes

  • Sunday, April 1, 2018
  • by sanotto
  • Repository
  • 1 Watchers
  • 0 Stars
  • 59 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

ATK Module Global Search

A module that enables searching all nodes., (*1)

Installation

Just require it with:, (*2)

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

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

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., (*4)

A Requirement ...

Every node has to have a descriptor definition in order to appear in the results list., (*5)

A Bonus ...

You can implement a method called searchdescriptor in your node i.e.:, (*6)

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., (*7)

The Versions

01/04 2018

dev-master

9999999-dev

ATK Module to enable searching all nodes

  Sources   Download

MIT

The Requires

 

framework skeleton search atk

07/08 2017

1.0.1

1.0.1.0

ATK Module to enable searching all nodes

  Sources   Download

MIT

The Requires

 

framework skeleton search atk

18/07 2017

1.0.0

1.0.0.0

ATK Module to enable searching all nodes

  Sources   Download

MIT

The Requires

 

framework skeleton search atk

18/07 2017

dev-add-code-of-conduct-1

dev-add-code-of-conduct-1

ATK Module to enable searching all nodes

  Sources   Download

MIT

The Requires

 

framework skeleton search atk

18/07 2017

dev-add-license-1

dev-add-license-1

ATK Module to enable searching all nodes

  Sources   Download

MIT

The Requires

 

framework skeleton search atk