diff --git a/code/DMSSiteTreeExtension.php b/code/DMSSiteTreeExtension.php index 027c427..281a166 100644 --- a/code/DMSSiteTreeExtension.php +++ b/code/DMSSiteTreeExtension.php @@ -76,7 +76,7 @@ class DMSSiteTreeExtension extends DataExtension { ); $fields->addFieldsToTab( - 'Root.Documents', + 'Root.Documents (' . $this->owner->Documents()->Count() . ')', array( $uploadBtn, $gridField