Files
mautic-marketing-program-bu…/Config/config.php
T
Alexandre Gain 8696acd01c feat: Add TargetType form and migration for plan targets
- Implemented TargetType form for managing target details including name, type, priority, stages, estimated size, profile criteria, pain points, value proposition, and preferred channels.
- Created migration scripts for adding type and priority columns to plan objectives and tasks.
- Added migration for creating plan targets and plan target stages tables, including foreign key constraints.
- Introduced stakeholder management with forms and views for creating, editing, and listing stakeholders.
- Enhanced UI with read more functionality for long text descriptions and filtering options in plan tab tables.
2026-11-08 11:54:25 +01:00

120 lines
5.1 KiB
PHP

<?php
declare(strict_types=1);
return [
'name' => 'Plan',
'description' => 'Plan plugin for Mautic.',
'version' => '0.12.0',
'author' => 'Experiential',
'routes' => [
'main' => [
'plan_index' => [
'path' => '/plans/{page}',
'controller' => 'MauticPlugin\PlanBundle\Controller\PlanController::indexAction',
],
// objectAction: view, new, edit, delete, batchDelete.
'plan_action' => [
'path' => '/plans/{objectAction}/{objectId}',
'controller' => 'MauticPlugin\PlanBundle\Controller\PlanController::executeAction',
],
'plan_task_index' => [
'path' => '/plan-tasks/{page}',
'controller' => 'MauticPlugin\PlanBundle\Controller\TaskController::indexAction',
],
// objectAction: new (optional ?plan=ID), edit, delete, batchDelete.
'plan_task_action' => [
'path' => '/plan-tasks/{objectAction}/{objectId}',
'controller' => 'MauticPlugin\PlanBundle\Controller\TaskController::executeAction',
],
'plan_stakeholder_index' => [
'path' => '/plan-stakeholders/{page}',
'controller' => 'MauticPlugin\PlanBundle\Controller\StakeholderController::indexAction',
],
// objectAction: new, edit, delete, batchDelete.
'plan_stakeholder_action' => [
'path' => '/plan-stakeholders/{objectAction}/{objectId}',
'controller' => 'MauticPlugin\PlanBundle\Controller\StakeholderController::executeAction',
],
],
],
// Top-level "Planning" menu. Future planning objects go in its children, after Plans.
'menu' => [
'main' => [
'mautic.plan.menu.root' => [
'id' => 'plan_root',
'iconClass' => 'ri-calendar-line',
'access' => ['plan:plans:viewown', 'plan:plans:viewother', 'plan:tasks:viewown', 'plan:tasks:viewother', 'plan:stakeholders:viewown', 'plan:stakeholders:viewother'],
'priority' => 5,
'children' => [
'mautic.plan.menu.index' => [
'id' => 'plan_index',
'route' => 'plan_index',
'access' => ['plan:plans:viewown', 'plan:plans:viewother'],
'priority' => 100,
],
'mautic.plan.task.menu.index' => [
'id' => 'plan_task_index',
'route' => 'plan_task_index',
'access' => ['plan:tasks:viewown', 'plan:tasks:viewother'],
'priority' => 90,
],
'mautic.plan.stakeholder.menu.index' => [
'id' => 'plan_stakeholder_index',
'route' => 'plan_stakeholder_index',
'access' => ['plan:stakeholders:viewown', 'plan:stakeholders:viewother'],
'priority' => 80,
],
],
],
],
],
'services' => [
'integrations' => [
'mautic.plan.integration' => [
'class' => MauticPlugin\PlanBundle\Integration\PlanIntegration::class,
'tags' => [
'mautic.integration',
'mautic.basic_integration',
],
],
'mautic.plan.integration.configuration' => [
'class' => MauticPlugin\PlanBundle\Integration\Support\ConfigSupport::class,
'tags' => [
'mautic.config_integration',
],
],
],
],
// Registers "plan" as a category type (Settings > Categories), used by Plan::$category.
'categories' => [
'plan' => [
'class' => MauticPlugin\PlanBundle\Entity\Plan::class,
'label' => 'mautic.plan.category.type',
],
],
'parameters' => [
// The currency of every amount in the plugin (ISO 4217), edited in Settings > Configuration >
// Plan Settings. Read it through CurrencyProvider.
'plan_currency' => 'EUR',
// Item types, edited in Settings > Configuration > Plan Settings. Read them through ItemTypeProvider.
// Each is a list of ['key' => …, 'names' => [locale => …], 'descriptions' => [locale => …]],
// plus 'icon' => a Remix Icon class for description, allocation, objective, task and stakeholder types.
'plan_description_item_types' => [],
'plan_allocation_item_types' => [],
'plan_objective_types' => [],
'plan_task_types' => [],
'plan_stakeholder_types' => [],
// Default region (ISO 3166-1 alpha-2, e.g. FR) used to parse stakeholder phone numbers typed
// without a country prefix, on save. Read through StakeholderModel.
'plan_stakeholder_phone_region' => 'FR',
],
];