mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Updating Path on module's manifests. Adding FeatureName attribute.
--HG-- branch : dev
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
Name: Archive Later
|
Name: Archive Later
|
||||||
|
Path: ArchiveLater
|
||||||
AntiForgery: enabled
|
AntiForgery: enabled
|
||||||
Author: The Orchard Team
|
Author: The Orchard Team
|
||||||
Website: http://orchardproject.net
|
Website: http://orchardproject.net
|
||||||
|
|||||||
@@ -5,12 +5,11 @@ Website: http://orchardproject.net
|
|||||||
Version: 1.0
|
Version: 1.0
|
||||||
OrchardVersion: 1.0
|
OrchardVersion: 1.0
|
||||||
Description: Contains designer tools to ease the Themes development process
|
Description: Contains designer tools to ease the Themes development process
|
||||||
|
FeatureName: Shape Tracing
|
||||||
|
Category: Designer
|
||||||
|
FeatureDescription: Displays all currently displayed shapes and some information to customize them
|
||||||
|
Dependencies: Orchard.jQuery
|
||||||
Features:
|
Features:
|
||||||
Orchard.DesignerTools:
|
|
||||||
Name: Shape Tracing
|
|
||||||
Category: Designer
|
|
||||||
Description: Displays all currently displayed shapes and some information to customize them
|
|
||||||
Dependencies: Orchard.jQuery
|
|
||||||
UrlAlternates:
|
UrlAlternates:
|
||||||
Name: Url Alternates
|
Name: Url Alternates
|
||||||
Category: Designer
|
Category: Designer
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ namespace Orchard.Experimental {
|
|||||||
[OrchardFeature("Orchard.Experimental.LockLogging")]
|
[OrchardFeature("Orchard.Experimental.LockLogging")]
|
||||||
public class LockLogging : FilterProvider, IExceptionFilter {
|
public class LockLogging : FilterProvider, IExceptionFilter {
|
||||||
private readonly Work<ISessionLocator> _sessionLocator;
|
private readonly Work<ISessionLocator> _sessionLocator;
|
||||||
private readonly ITransactionManager _transactionManager;
|
|
||||||
|
|
||||||
public LockLogging(Work<ISessionLocator> sessionLocator) {
|
public LockLogging(Work<ISessionLocator> sessionLocator) {
|
||||||
_sessionLocator = sessionLocator;
|
_sessionLocator = sessionLocator;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
Name: Import Export
|
Name: Import Export
|
||||||
|
Path: ImportExport
|
||||||
AntiForgery: enabled
|
AntiForgery: enabled
|
||||||
Author: The Orchard Team
|
Author: The Orchard Team
|
||||||
Website: http://orchardproject.net
|
Website: http://orchardproject.net
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
Name: Publish Later
|
Name: Publish Later
|
||||||
|
Path: PublishLater
|
||||||
AntiForgery: enabled
|
AntiForgery: enabled
|
||||||
Author: The Orchard Team
|
Author: The Orchard Team
|
||||||
Website: http://orchardproject.net
|
Website: http://orchardproject.net
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
Name: jQuery
|
Name: jQuery
|
||||||
|
Path: Orchard.jQuery
|
||||||
AntiForgery: enabled
|
AntiForgery: enabled
|
||||||
Author: The Orchard Team
|
Author: The Orchard Team
|
||||||
Website: http://orchardproject.net
|
Website: http://orchardproject.net
|
||||||
|
|||||||
@@ -183,6 +183,9 @@ namespace Orchard.Environment.Extensions.Folders {
|
|||||||
case "FeatureDescription":
|
case "FeatureDescription":
|
||||||
manifest.Add("FeatureDescription", field[1]);
|
manifest.Add("FeatureDescription", field[1]);
|
||||||
break;
|
break;
|
||||||
|
case "FeatureName":
|
||||||
|
manifest.Add("FeatureName", field[1]);
|
||||||
|
break;
|
||||||
case "Priority":
|
case "Priority":
|
||||||
manifest.Add("Priority", field[1]);
|
manifest.Add("Priority", field[1]);
|
||||||
break;
|
break;
|
||||||
@@ -202,7 +205,7 @@ namespace Orchard.Environment.Extensions.Folders {
|
|||||||
// Default feature
|
// Default feature
|
||||||
FeatureDescriptor defaultFeature = new FeatureDescriptor {
|
FeatureDescriptor defaultFeature = new FeatureDescriptor {
|
||||||
Id = extensionDescriptor.Id,
|
Id = extensionDescriptor.Id,
|
||||||
Name = extensionDescriptor.Name,
|
Name = GetValue(manifest, "FeatureName") ?? extensionDescriptor.Name,
|
||||||
Priority = GetValue(manifest, "Priority") != null ? int.Parse(GetValue(manifest, "Priority")) : 0,
|
Priority = GetValue(manifest, "Priority") != null ? int.Parse(GetValue(manifest, "Priority")) : 0,
|
||||||
Description = GetValue(manifest, "FeatureDescription") ?? GetValue(manifest, "Description") ?? string.Empty,
|
Description = GetValue(manifest, "FeatureDescription") ?? GetValue(manifest, "Description") ?? string.Empty,
|
||||||
Dependencies = ParseFeatureDependenciesEntry(GetValue(manifest, "Dependencies")),
|
Dependencies = ParseFeatureDependenciesEntry(GetValue(manifest, "Dependencies")),
|
||||||
|
|||||||
Reference in New Issue
Block a user