mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Provide addition tree hints for VirtualPage original page type (AIR-81)
This commit is contained in:
parent
87c318d168
commit
062e3b6a0c
@ -277,6 +277,10 @@ class VirtualPage extends Page {
|
||||
$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
|
||||
* through to the virtual page
|
||||
|
Loading…
Reference in New Issue
Block a user