Skip to content

Commit

Permalink
API Add new configuration for use in CMSMain-like admin
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Nov 8, 2024
1 parent d57fa75 commit 25d5b89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/TaxonomyTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,21 @@ class TaxonomyTerm extends DataObject implements PermissionProvider

private static $default_sort = 'Sort';

private static string $sort_field = 'Sort';

private static $summary_fields = array(
'Name' => 'Name',
'Type.Name' => 'Type'
);

private static $type_inheritance_enabled = true;

/**
* Css class attached to icons in a CMSMain tree. Also supports font-icon set.
* Overrides cms_icon for most purposes if set on the same class
*/
private static string $cms_icon_class = 'font-icon-tag';

public function getCMSFields()
{
$this->beforeUpdateCMSFields(function (FieldList $fields) {
Expand Down

0 comments on commit 25d5b89

Please sign in to comment.