feat(menu): move UTM Taxonomies and Smart Links into the Marketing Programs menu (0.18.2)
The standalone top-level "Smart Links" menu group is removed: its two pages, UTM Taxonomies then Smart Links, are now the last children of the Marketing Programs menu (priorities 50 and 45). - the root's access array gains the smart_links and taxonomies view permissions, so users with only Smart Links rights still get the menu (Mautic checks the parent's access before showing the group) - the now-unused mt3s.smart_links.menu.root translation key is removed from the en_US and fr_FR catalogs - routes, tables, permissions and URLs are unchanged - version bumped to 0.18.2 (plugins:reload picks the menu change up)
This commit is contained in:
1 parent
603e564037
commit
88256ca345
4 files changed
+11
-26
No files matched your search
+8
-22
@@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||
return [
|
||||
'name' => 'MT3S Marketing Program',
|
||||
'description' => 'MT3S Marketing: programs, tasks, audiences, and smart links with their UTM taxonomies.',
|
||||
'version' => '0.18.1',
|
||||
'version' => '0.18.2',
|
||||
'author' => 'Experiential',
|
||||
|
||||
'routes' => [
|
||||
@@ -81,13 +81,14 @@ return [
|
||||
],
|
||||
],
|
||||
|
||||
// Top-level "Programs" menu. Future program objects go in its children, after Programs.
|
||||
// Top-level "Marketing Programs" menu. Future program objects go in its children, after
|
||||
// Programs; the Smart Links domain's pages (UTM Taxonomies, Smart Links) close the menu.
|
||||
'menu' => [
|
||||
'main' => [
|
||||
'mt3s.marketing_program.menu.root' => [
|
||||
'id' => 'mt3s_marketing_program_root',
|
||||
'iconClass' => 'ri-calendar-line',
|
||||
'access' => ['mt3smarketingprogram:programs:viewown', 'mt3smarketingprogram:programs:viewother', 'mt3smarketingprogram:tasks:viewown', 'mt3smarketingprogram:tasks:viewother', 'mt3smarketingprogram:stakeholders:viewown', 'mt3smarketingprogram:stakeholders:viewother', 'mt3smarketingprogram:audiences:viewown', 'mt3smarketingprogram:audiences:viewother', 'mt3smarketingprogram:itemtypes:view'],
|
||||
'access' => ['mt3smarketingprogram:programs:viewown', 'mt3smarketingprogram:programs:viewother', 'mt3smarketingprogram:tasks:viewown', 'mt3smarketingprogram:tasks:viewother', 'mt3smarketingprogram:stakeholders:viewown', 'mt3smarketingprogram:stakeholders:viewother', 'mt3smarketingprogram:audiences:viewown', 'mt3smarketingprogram:audiences:viewother', 'mt3smarketingprogram:itemtypes:view', 'mt3smarketingprogram:smart_links:viewown', 'mt3smarketingprogram:smart_links:viewother', 'mt3smarketingprogram:taxonomies:viewown', 'mt3smarketingprogram:taxonomies:viewother'],
|
||||
'priority' => 5,
|
||||
'children' => [
|
||||
'mt3s.marketing_program.menu.index' => [
|
||||
@@ -120,36 +121,21 @@ return [
|
||||
'access' => ['mt3smarketingprogram:itemtypes:view'],
|
||||
'priority' => 55,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
// Top-level "Smart Links" menu: UTM Taxonomies above the Smart Links list. The two
|
||||
// domains (Marketing Program and Smart Links) stay separate menu groups.
|
||||
'mt3s.smart_links.menu.root' => [
|
||||
'id' => 'mt3s_smart_links',
|
||||
'route' => 'mt3s_smart_links_index',
|
||||
'iconClass' => 'ri-links-line',
|
||||
'access' => [
|
||||
'mt3smarketingprogram:smart_links:viewown',
|
||||
'mt3smarketingprogram:smart_links:viewother',
|
||||
'mt3smarketingprogram:taxonomies:viewown',
|
||||
'mt3smarketingprogram:taxonomies:viewother',
|
||||
],
|
||||
'priority' => 4,
|
||||
'children' => [
|
||||
// The Smart Links domain (UTM taxonomies, then the links) closes the menu, in
|
||||
// that order. It is no longer a top-level group of its own.
|
||||
'mt3s.smart_links.menu.taxonomies' => [
|
||||
'id' => 'mt3s_smart_links_taxonomies',
|
||||
'route' => 'mt3s_smart_links_taxonomies',
|
||||
'iconClass' => 'ri-price-tag-3-line',
|
||||
'access' => ['mt3smarketingprogram:taxonomies:viewown', 'mt3smarketingprogram:taxonomies:viewother'],
|
||||
'priority' => 5,
|
||||
'priority' => 50,
|
||||
],
|
||||
'mt3s.smart_links.menu.smartlinks' => [
|
||||
'id' => 'mt3s_smart_links_index',
|
||||
'route' => 'mt3s_smart_links_index',
|
||||
'iconClass' => 'ri-link',
|
||||
'access' => ['mt3smarketingprogram:smart_links:viewown', 'mt3smarketingprogram:smart_links:viewother'],
|
||||
'priority' => 4,
|
||||
'priority' => 45,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user