Skip to content

Commit

Permalink
[spalenque] - #13968 * fix summit banner cms
Browse files Browse the repository at this point in the history
  • Loading branch information
santipalenque committed Mar 23, 2018
1 parent edc6b74 commit ea31bb4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openstack/code/HomePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HomePage extends Page
);

private static $has_many = array(
'SummitBanners' => 'SummitBanner'
'SummitBanners' => 'SummitBanner.ParentPage'
);

function getCMSFields()
Expand Down
11 changes: 11 additions & 0 deletions summit/code/infrastructure/active_records/SummitBanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,15 @@ public function renderBanner() {
));
}


public function getCMSFields()
{
$fields = parent::getCMSFields();

$fields->add(new TextField('ParentPageID','ParentPageID'));

return $fields;

}

}

0 comments on commit ea31bb4

Please sign in to comment.