diff --git a/src/SeoToolkit.Umbraco.Common.Core/Constants/TreeControllerConstants.cs b/src/SeoToolkit.Umbraco.Common.Core/Constants/TreeControllerConstants.cs index f50a8fcd..ace9fdfd 100644 --- a/src/SeoToolkit.Umbraco.Common.Core/Constants/TreeControllerConstants.cs +++ b/src/SeoToolkit.Umbraco.Common.Core/Constants/TreeControllerConstants.cs @@ -4,5 +4,29 @@ public class TreeControllerConstants { public const string SeoToolkitTreeControllerAlias = "SiteAudit"; public const string SeoToolkitTreeGroupAlias = "SeoToolkit"; + + public static class Redirects + { + public const string Alias = "Redirects"; + public const string Title = "Redirects"; + } + + public static class RobotsTxt + { + public const string Alias = "RobotsTxt"; + public const string Title = "Robots.txt"; + } + + public static class ScriptManager + { + public const string Alias = "ScriptManager"; + public const string Title = "Script Manager"; + } + + public static class SiteAudit + { + public const string Alias = "SiteAudit"; + public const string Title = "Site Audits"; + } } } diff --git a/src/SeoToolkit.Umbraco.Redirects.Core/Controllers/RedirectsTreeController.cs b/src/SeoToolkit.Umbraco.Redirects.Core/Controllers/RedirectsTreeController.cs index 692e81c4..8b944a28 100644 --- a/src/SeoToolkit.Umbraco.Redirects.Core/Controllers/RedirectsTreeController.cs +++ b/src/SeoToolkit.Umbraco.Redirects.Core/Controllers/RedirectsTreeController.cs @@ -10,10 +10,12 @@ namespace SeoToolkit.Umbraco.Redirects.Core.Controllers { - [Tree("SeoToolkit", "Redirects", TreeTitle = "Redirects", TreeGroup = TreeGroupAlias, SortOrder = 4)] + [Tree("SeoToolkit", Alias, TreeTitle = Title, TreeGroup = TreeGroupAlias, SortOrder = 4)] [PluginController("SeoToolkit")] public class RedirectsTreeController : TreeController { + public const string Alias = TreeControllerConstants.Redirects.Alias; + public const string Title = TreeControllerConstants.Redirects.Title; public const string TreeGroupAlias = TreeControllerConstants.SeoToolkitTreeGroupAlias; public RedirectsTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IEventAggregator eventAggregator) : base(localizedTextService, umbracoApiControllerTypeCollection, eventAggregator) diff --git a/src/SeoToolkit.Umbraco.RobotsTxt.Core/Controllers/RobotsTxtTreeController.cs b/src/SeoToolkit.Umbraco.RobotsTxt.Core/Controllers/RobotsTxtTreeController.cs index a7f74318..c22cb088 100644 --- a/src/SeoToolkit.Umbraco.RobotsTxt.Core/Controllers/RobotsTxtTreeController.cs +++ b/src/SeoToolkit.Umbraco.RobotsTxt.Core/Controllers/RobotsTxtTreeController.cs @@ -10,10 +10,12 @@ namespace SeoToolkit.Umbraco.RobotsTxt.Core.Controllers { - [Tree("SeoToolkit", "RobotsTxt", TreeTitle = "Robots.txt", TreeGroup = TreeGroupAlias, SortOrder = 3)] + [Tree("SeoToolkit", Alias, TreeTitle = Title, TreeGroup = TreeGroupAlias, SortOrder = 3)] [PluginController("SeoToolkit")] public class RobotsTxtTreeController : TreeController { + public const string Alias = TreeControllerConstants.RobotsTxt.Alias; + public const string Title = TreeControllerConstants.RobotsTxt.Title; public const string TreeGroupAlias = TreeControllerConstants.SeoToolkitTreeGroupAlias; public RobotsTxtTreeController( diff --git a/src/SeoToolkit.Umbraco.ScriptManager.Core/Controllers/ScriptManagerTreeController.cs b/src/SeoToolkit.Umbraco.ScriptManager.Core/Controllers/ScriptManagerTreeController.cs index 8c42f7a6..d89dfe35 100644 --- a/src/SeoToolkit.Umbraco.ScriptManager.Core/Controllers/ScriptManagerTreeController.cs +++ b/src/SeoToolkit.Umbraco.ScriptManager.Core/Controllers/ScriptManagerTreeController.cs @@ -13,10 +13,12 @@ namespace SeoToolkit.Umbraco.ScriptManager.Core.Controllers { - [Tree("SeoToolkit", "ScriptManager", TreeTitle = "Script Manager", TreeGroup = TreeGroupAlias, SortOrder = 2)] + [Tree("SeoToolkit", Alias, TreeTitle = Title, TreeGroup = TreeGroupAlias, SortOrder = 2)] [PluginController("SeoToolkit")] public class ScriptManagerTreeController : TreeController { + public const string Alias = TreeControllerConstants.ScriptManager.Alias; + public const string Title = TreeControllerConstants.ScriptManager.Title; public const string TreeGroupAlias = TreeControllerConstants.SeoToolkitTreeGroupAlias; private readonly IMenuItemCollectionFactory _menuItemCollectionFactory; diff --git a/src/SeoToolkit.Umbraco.SiteAudit.Core/Controllers/SiteAuditTreeController.cs b/src/SeoToolkit.Umbraco.SiteAudit.Core/Controllers/SiteAuditTreeController.cs index b4c7453b..c3732405 100644 --- a/src/SeoToolkit.Umbraco.SiteAudit.Core/Controllers/SiteAuditTreeController.cs +++ b/src/SeoToolkit.Umbraco.SiteAudit.Core/Controllers/SiteAuditTreeController.cs @@ -13,10 +13,12 @@ namespace SeoToolkit.Umbraco.SiteAudit.Core.Controllers { - [Tree("SeoToolkit", "SiteAudit", TreeTitle = "Site Audits", TreeGroup = TreeGroupAlias, SortOrder = 1)] + [Tree("SeoToolkit", Alias, TreeTitle = Title, TreeGroup = TreeGroupAlias, SortOrder = 1)] [PluginController("SeoToolkit")] public class SeoToolkitTreeController : TreeController { + public const string Alias = TreeControllerConstants.SiteAudit.Alias; + public const string Title = TreeControllerConstants.SiteAudit.Title; public const string TreeGroupAlias = TreeControllerConstants.SeoToolkitTreeGroupAlias; private readonly IMenuItemCollectionFactory _menuItemCollectionFactory;