FIX should be

This commit is contained in:
micmania1 2015-02-03 05:43:13 +00:00
parent 9b2dcc295f
commit 431cd38065

View File

@ -75,7 +75,7 @@ class BlogPost extends Page {
// We're going to add the url segment to sidebar so we're making it a little lighter // We're going to add the url segment to sidebar so we're making it a little lighter
$urlSegment = $fields->dataFieldByName('URLSegment'); $urlSegment = $fields->dataFieldByName('URLSegment');
$urlSegment->setURLPrefix('/' . Director::makeRelative($this->Parent()->Link())); $urlSegment->setURLPrefix('/' . Director::makeRelative($self->Parent()->Link()));
// Remove the MenuTitle and URLSegment from the main tab // Remove the MenuTitle and URLSegment from the main tab
$fields->removeFieldsFromTab('Root.Main', array( $fields->removeFieldsFromTab('Root.Main', array(