Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Add new configuration for use in CMSMain-like admin #126

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading