add new global replace service for bulk updating content
This commit is contained in:
@@ -354,7 +354,7 @@ namespace Oqtane.Repository
|
||||
moduledefinition = new ModuleDefinition
|
||||
{
|
||||
Name = Utilities.GetTypeNameLastSegment(modulecontroltype.Namespace, 0),
|
||||
Description = "Manage " + Utilities.GetTypeNameLastSegment(modulecontroltype.Namespace, 0),
|
||||
Description = Utilities.GetTypeNameLastSegment(modulecontroltype.Namespace, 0),
|
||||
Categories = ((qualifiedModuleType.StartsWith("Oqtane.Modules.Admin.")) ? "Admin" : "")
|
||||
};
|
||||
}
|
||||
@@ -434,6 +434,12 @@ namespace Oqtane.Repository
|
||||
moduledefinition.ControlTypeRoutes += (action + "=" + modulecontroltype.FullName + ", " + modulecontroltype.Assembly.GetName().Name + ";");
|
||||
}
|
||||
}
|
||||
// module title
|
||||
if (modulecontroltype.Name == Constants.DefaultAction && !string.IsNullOrEmpty(modulecontrolobject.Title))
|
||||
{
|
||||
moduledefinition.Name = modulecontrolobject.Title;
|
||||
moduledefinition.Description = "Manage " + moduledefinition.Name;
|
||||
}
|
||||
|
||||
// check for Page attribute
|
||||
var routeAttributes = modulecontroltype.GetCustomAttributes(typeof(RouteAttribute), true).Cast<RouteAttribute>();
|
||||
|
||||
Reference in New Issue
Block a user