From 8fe9283181436a0b8bc1cf70874f36f89207cbf0 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 28 Apr 2011 22:45:18 +1200 Subject: [PATCH] ENHANCEMENT Adding page ID as metadata in SiteTree->MetaTags() in order to provide context for CMS preview of pages --- code/model/SiteTree.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index ed626e7f..d22c65ad 100755 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -1269,6 +1269,8 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid if($this->ExtraMeta) { $tags .= $this->ExtraMeta . "\n"; } + + if(Permission::check('CMS_ACCESS_CMSMain')) $tags .= "\n"; $this->extend('MetaTags', $tags);