mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MINOR if you clear a custom metadata field, it will reset back to the parent. (from r88838)
This commit is contained in:
parent
22b407168c
commit
ea21e6ff35
@ -84,9 +84,13 @@ class SubsitesVirtualPage extends VirtualPage {
|
|||||||
parent::onBeforeWrite();
|
parent::onBeforeWrite();
|
||||||
|
|
||||||
if($this->CustomMetaTitle) $this->MetaTitle = $this->CustomMetaTitle;
|
if($this->CustomMetaTitle) $this->MetaTitle = $this->CustomMetaTitle;
|
||||||
|
else $this->MetaTitle = $this->ContentSource()->MetaTitle;
|
||||||
if($this->CustomMetaKeywords) $this->MetaKeywords = $this->CustomMetaKeywords;
|
if($this->CustomMetaKeywords) $this->MetaKeywords = $this->CustomMetaKeywords;
|
||||||
|
else $this->MetaKeywords = $this->ContentSource()->MetaKeywords;
|
||||||
if($this->CustomMetaDescription) $this->MetaDescription = $this->CustomMetaDescription;
|
if($this->CustomMetaDescription) $this->MetaDescription = $this->CustomMetaDescription;
|
||||||
|
else $this->MetaDescription = $this->ContentSource()->MetaDescription;
|
||||||
if($this->CustomExtraMeta) $this->ExtraMeta = $this->CustomExtraMeta;
|
if($this->CustomExtraMeta) $this->ExtraMeta = $this->CustomExtraMeta;
|
||||||
|
else $this->CustomExtraMeta = $this->ContentSource()->CustomExtraMeta;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user