Merge the Smartlinks plugin (SmartlinksBundle 0.6.0) into the bundle as the Smart Links domain (0.18.0)
Two domains, one MT3S bundle: Marketing Programs (unchanged) and the
imported Smart Links (smart links + UTM taxonomies), each keeping its
own menu, tables, routes and translations.
- Code moved from MauticPlugin\SmartlinksBundle\ to
MauticPlugin\MT3SMarketingProgramBundle\; template namespace
@Smartlinks/ -> @MT3SMarketingProgram/; smartlinks.js ->
Assets/js/mt3s-mp-smartlinks.js; icon -> Assets/img/smartlinks-icon.svg.
- Incoming migrations renamed Version_0_X_0_SmartLinks.php to avoid
the class-name collision; schema untouched, data intact.
- Permissions folded into MT3SMarketingProgramPermissions:
smart_links + taxonomies under the mt3smarketingprogram: base
(roles that had the old smartlinks: grants must be re-granted).
- config.php: Smart Links routes + menu group, public /l/{slug},
SmartlinksIntegration services, smartlinks_* parameters (legacy
utm_manager_* keys still readable), version 0.18.0. The 0.17.0
placeholder /s/marketing-program-utm-taxonomies is replaced by the
real /s/utm-taxonomies.
- Translations merged (en_US) and added (fr_FR); Tests/ + phpunit moved
in; readme documents both domains and the 0.18.0 merge history.
Verified live: menus, both config tabs, both lists + forms, program
pages, public redirect with taxonomy UTM values, host + unknown-slug
404s, 90/90 unit tests, full php -l, all ini catalogs parse.
This commit is contained in:
1 parent
debce4ba4a
commit
dce849610c
69 files changed
+8225
-43
No files matched your search
+85
-6
@@ -4,8 +4,8 @@ declare(strict_types=1);
|
||||
|
||||
return [
|
||||
'name' => 'MT3S Marketing Program',
|
||||
'description' => 'Marketing Program for Mautic.',
|
||||
'version' => '0.17.0',
|
||||
'description' => 'MT3S Marketing: programs, tasks, audiences, and smart links with their UTM taxonomies.',
|
||||
'version' => '0.18.0',
|
||||
'author' => 'Experiential',
|
||||
|
||||
'routes' => [
|
||||
@@ -46,12 +46,24 @@ return [
|
||||
'path' => '/marketing-program-audiences/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\AudienceController::executeAction',
|
||||
],
|
||||
// UTM Taxonomies: a placeholder page for the coming feature, kept out of the menu
|
||||
// (the route stays; the page is reachable at /s/marketing-program-utm-taxonomies).
|
||||
'mt3s_marketing_program_utm_taxonomy_index' => [
|
||||
'path' => '/marketing-program-utm-taxonomies/{page}',
|
||||
// Smart Links domain: the list and its object actions.
|
||||
'mautic_smartlinks_index' => [
|
||||
'path' => '/smart-links/{page}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\SmartLinkController::indexAction',
|
||||
],
|
||||
'mautic_smartlinks_action' => [
|
||||
'path' => '/smart-links/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\SmartLinkController::executeAction',
|
||||
],
|
||||
// UTM Taxonomies: the list and its object actions.
|
||||
'mautic_smartlinks_taxonomies' => [
|
||||
'path' => '/utm-taxonomies/{page}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\UtmTaxonomyController::indexAction',
|
||||
],
|
||||
'mautic_smartlinks_taxonomy_action' => [
|
||||
'path' => '/utm-taxonomies/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\UtmTaxonomyController::executeAction',
|
||||
],
|
||||
// The type lists of the plugin's items (Insights, allocations, objectives, tasks,
|
||||
// stakeholders, audience values), moved out of Settings > Configuration.
|
||||
'mt3s_marketing_program_item_types_index' => [
|
||||
@@ -59,6 +71,14 @@ return [
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\ItemTypesController::indexAction',
|
||||
],
|
||||
],
|
||||
// https://{short_link_domain}/l/{slug}: the public entry point of the Smart Links.
|
||||
// Public routes are served without the /s/ prefix and without authentication.
|
||||
'public' => [
|
||||
'mautic_smartlinks_go' => [
|
||||
'path' => '/l/{slug}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\PublicController::goAction',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
// Top-level "Programs" menu. Future program objects go in its children, after Programs.
|
||||
@@ -102,6 +122,37 @@ return [
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
// Top-level "Smart Links" menu: UTM Taxonomies above the Smart Links list. The two
|
||||
// domains (Marketing Program and Smart Links) stay separate menu groups.
|
||||
'mautic.smartlinks.menu.root' => [
|
||||
'id' => 'mautic_smartlinks',
|
||||
'route' => 'mautic_smartlinks_index',
|
||||
'iconClass' => 'ri-links-line',
|
||||
'access' => [
|
||||
'mt3smarketingprogram:smart_links:viewown',
|
||||
'mt3smarketingprogram:smart_links:viewother',
|
||||
'mt3smarketingprogram:taxonomies:viewown',
|
||||
'mt3smarketingprogram:taxonomies:viewother',
|
||||
],
|
||||
'priority' => 4,
|
||||
'children' => [
|
||||
'mautic.smartlinks.menu.taxonomies' => [
|
||||
'id' => 'mautic_smartlinks_taxonomies',
|
||||
'route' => 'mautic_smartlinks_taxonomies',
|
||||
'iconClass' => 'ri-price-tag-3-line',
|
||||
'access' => ['mt3smarketingprogram:taxonomies:viewown', 'mt3smarketingprogram:taxonomies:viewother'],
|
||||
'priority' => 5,
|
||||
],
|
||||
'mautic.smartlinks.menu.smartlinks' => [
|
||||
'id' => 'mautic_smartlinks_index',
|
||||
'route' => 'mautic_smartlinks_index',
|
||||
'iconClass' => 'ri-link',
|
||||
'access' => ['mt3smarketingprogram:smart_links:viewown', 'mt3smarketingprogram:smart_links:viewother'],
|
||||
'priority' => 4,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
@@ -120,6 +171,19 @@ return [
|
||||
'mautic.config_integration',
|
||||
],
|
||||
],
|
||||
'mt3s.smart_links.integration' => [
|
||||
'class' => MauticPlugin\MT3SMarketingProgramBundle\Integration\SmartlinksIntegration::class,
|
||||
'tags' => [
|
||||
'mautic.integration',
|
||||
'mautic.basic_integration',
|
||||
],
|
||||
],
|
||||
'mt3s.smart_links.integration.configuration' => [
|
||||
'class' => MauticPlugin\MT3SMarketingProgramBundle\Integration\Support\ConfigSupport::class,
|
||||
'tags' => [
|
||||
'mautic.config_integration',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
@@ -169,5 +233,20 @@ return [
|
||||
// ItemTypeProvider (kinds "audience_decision_role" and "audience_tone").
|
||||
'mt3s_marketing_program_audience_decision_roles' => [],
|
||||
'mt3s_marketing_program_audience_tones' => [],
|
||||
|
||||
// Stored by Settings > Configuration > Smart Links Settings (SmartLinksConfigSubscriber).
|
||||
// Read through UtmConfigurationProvider; the default stays empty, the catalog
|
||||
// defaults are applied by UtmConfigurationNormalizer.
|
||||
'smartlinks_utm_config' => [],
|
||||
'smartlinks_config' => [
|
||||
'short_link_domain' => '',
|
||||
],
|
||||
// Legacy keys of the standalone Smartlinks plugin era (< 0.18.0). Declared so the
|
||||
// read fallbacks can serve upgrades from local.php until the settings are saved
|
||||
// again; new values are always written to the new keys.
|
||||
'utm_manager_config' => [],
|
||||
'utm_manager_smart_links' => [
|
||||
'short_link_domain' => '',
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in new issue
Block a user