1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-28 15:29:59 +02:00

Flextype Box Plugin: Admin #125 #117

- Entries Controller/Views implementation
This commit is contained in:
Awilum
2019-05-22 14:03:26 +03:00
parent 16aacb68d6
commit e40fcdded3

View File

@@ -375,11 +375,21 @@ class EntriesController extends Controller
'files' => $this->getMediaList($entry_name),
'menu_item' => 'entries',
'links' => [
'entries' => [
'link' => $this->router->urlFor('admin.entries.index'),
'title' => __('admin_entries'),
'edit_entry' => [
'link' => $this->router->urlFor('admin.entries.edit') . '?entry=' . $entry_name,
'title' => __('admin_content'),
'attributes' => ['class' => 'navbar-item active']
],
'edit_entry_media' => [
'link' => $this->router->urlFor('admin.entries.edit') . '?entry=' . $entry_name . '&media=true',
'title' => __('admin_media'),
'attributes' => ['class' => 'navbar-item']
]
],
'edit_entry_source' => [
'link' => $this->router->urlFor('admin.entries.edit') . '?entry=' . $entry_name . '&source=true',
'title' => __('admin_source'),
'attributes' => ['class' => 'navbar-item']
],
]
]);
}