Skip to content

Commit

Permalink
add some keywords to other fieldtypes
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Nov 4, 2024
1 parent bb40700 commit 07ccfc5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Fieldtypes/Assets/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class Assets extends Fieldtype
{
protected $categories = ['media', 'relationship'];
protected $keywords = ['file', 'files', 'image', 'images', 'video', 'videos', 'audio', 'upload'];
protected $selectableInForms = true;

protected function configFieldItems(): array
Expand Down
1 change: 1 addition & 0 deletions src/Fieldtypes/Collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
class Collections extends Relationship
{
protected $categories = ['relationship'];
protected $keywords = ['entries'];
protected $canEdit = false;
protected $canCreate = false;
protected $canSearch = false;
Expand Down
1 change: 1 addition & 0 deletions src/Fieldtypes/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
class Color extends Fieldtype
{
protected $categories = ['special'];
protected $keywords = ['rgb', 'hex', 'colour'];

protected function configFieldItems(): array
{
Expand Down
1 change: 1 addition & 0 deletions src/Fieldtypes/Markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
class Markdown extends Fieldtype
{
protected $categories = ['text'];
protected $keywords = ['md'];

use Concerns\ResolvesStatamicUrls;

Expand Down
1 change: 1 addition & 0 deletions src/Fieldtypes/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Select extends Fieldtype
use HasSelectOptions;

protected $categories = ['controls'];
protected $keywords = ['select', 'option', 'choice', 'dropdown', 'list'];
protected $selectableInForms = true;
protected $indexComponent = 'tags';

Expand Down
1 change: 1 addition & 0 deletions src/Fieldtypes/Toggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
class Toggle extends Fieldtype
{
protected $categories = ['controls'];
protected $keywords = ['checkbox', 'bool', 'boolean'];
protected $selectableInForms = true;
protected $defaultValue = false;

Expand Down
1 change: 1 addition & 0 deletions src/Fieldtypes/Yaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
class Yaml extends Fieldtype
{
protected $categories = ['special'];
protected $keywords = ['yml'];

protected function configFieldItems(): array
{
Expand Down

0 comments on commit 07ccfc5

Please sign in to comment.