diff --git a/code/model/VirtualPage.php b/code/model/VirtualPage.php index 3ebc77e8..66d7dc25 100644 --- a/code/model/VirtualPage.php +++ b/code/model/VirtualPage.php @@ -276,6 +276,10 @@ class VirtualPage extends Page { // Update ImageTracking $this->ImageTracking()->setByIdList($this->CopyContentFrom()->ImageTracking()->column('ID')); } + + function CMSTreeClasses($controller) { + return parent::CMSTreeClasses($controller) . ' VirtualPage-' . $this->CopyContentFrom()->ClassName; + } /** * Allow attributes on the master page to pass