MINOR Implemented "Add new" link in CMSPagesController

This commit is contained in:
Ingo Schommer 2012-03-08 17:31:02 +01:00
parent 953e2bd1c7
commit c94308d21d
2 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,10 @@ class CMSPagesController extends CMSMain {
return false;
}
function AddLink() {
return singleton("CMSPageAddController")->Link();
}
public function currentPageID() {
return false;
}

View File

@ -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">