From 062e3b6a0c5309d19644bdb03be92483977f31e4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 14 Jan 2012 11:13:17 +0100 Subject: [PATCH] MINOR Provide addition tree hints for VirtualPage original page type (AIR-81) --- code/model/VirtualPage.php | 4 ++++ 1 file changed, 4 insertions(+) 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