mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Implemented "Add new" link in CMSPagesController
This commit is contained in:
parent
953e2bd1c7
commit
c94308d21d
@ -39,6 +39,10 @@ class CMSPagesController extends CMSMain {
|
||||
return false;
|
||||
}
|
||||
|
||||
function AddLink() {
|
||||
return singleton("CMSPageAddController")->Link();
|
||||
}
|
||||
|
||||
public function currentPageID() {
|
||||
return false;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
</div>
|
||||
|
||||
<div class="cms-actions-row">
|
||||
<a class="ss-ui-button ss-ui-action-constructive" data-icon="add" href="#cms-page-add-form"><% _t('CMSMain.AddNewButton', 'Add new') %></a>
|
||||
<a class="ss-ui-button ss-ui-action-constructive cms-panel-link" data-icon="add" href="$AddLink"><% _t('CMSMain.AddNewButton', 'Add new') %></a>
|
||||
</div>
|
||||
|
||||
<div class="cms-content-batchactions">
|
||||
|
Loading…
Reference in New Issue
Block a user