MINOR Provide addition tree hints for VirtualPage original page type (AIR-81)

This commit is contained in:
Ingo Schommer 2012-01-14 11:13:17 +01:00
parent 87c318d168
commit 062e3b6a0c

View File

@ -277,6 +277,10 @@ class VirtualPage extends Page {
$this->ImageTracking()->setByIdList($this->CopyContentFrom()->ImageTracking()->column('ID')); $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 * Allow attributes on the master page to pass
* through to the virtual page * through to the virtual page