Permalink
Browse files

ENHANCEMENT Adding page ID as metadata in SiteTree->MetaTags() in ord…

…er to provide context for CMS preview of pages
  • Loading branch information...
1 parent 51ba790 commit 8fe9283181436a0b8bc1cf70874f36f89207cbf0 @chillu chillu committed Apr 28, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 code/model/SiteTree.php
View
@@ -1269,6 +1269,8 @@ public function MetaTags($includeTitle = true) {
if($this->ExtraMeta) {
$tags .= $this->ExtraMeta . "\n";
}
+
+ if(Permission::check('CMS_ACCESS_CMSMain')) $tags .= "<meta name='x-page-id' content='{$this->ID}' />\n";
$this->extend('MetaTags', $tags);

0 comments on commit 8fe9283

Please sign in to comment.