mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-09-30 05:09:07 +02:00
BUGFIX Fixing incorrect URL to edit canonical page on VirtualPage
This commit is contained in:
parent
0515555ab1
commit
7ed09917ac
@ -195,8 +195,8 @@ class VirtualPage extends Page {
|
|||||||
$fields->addFieldToTab("Root.Main", $copyContentFromField, "Title");
|
$fields->addFieldToTab("Root.Main", $copyContentFromField, "Title");
|
||||||
|
|
||||||
// Create links back to the original object in the CMS
|
// Create links back to the original object in the CMS
|
||||||
if($this->CopyContentFrom()->ID) {
|
if($this->CopyContentFrom()->exists()) {
|
||||||
$linkToContent = "<a class=\"cmsEditlink\" href=\"admin/show/$this->CopyContentFromID\">" .
|
$linkToContent = "<a class=\"cmsEditlink\" href=\"admin/pages/edit/show/$this->CopyContentFromID\">" .
|
||||||
_t('VirtualPage.EDITCONTENT', 'click here to edit the content') . "</a>";
|
_t('VirtualPage.EDITCONTENT', 'click here to edit the content') . "</a>";
|
||||||
$fields->addFieldToTab("Root.Main",
|
$fields->addFieldToTab("Root.Main",
|
||||||
$linkToContentLabelField = new LabelField('VirtualPageContentLinkLabel', $linkToContent),
|
$linkToContentLabelField = new LabelField('VirtualPageContentLinkLabel', $linkToContent),
|
||||||
|
Loading…
Reference in New Issue
Block a user