mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing build
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Orchard.DynamicForms.Drivers {
|
||||
});
|
||||
}
|
||||
|
||||
protected override void OnDisplaying(Button element, ElementDisplayContext context) {
|
||||
protected override void OnDisplaying(Button element, ElementDisplayingContext context) {
|
||||
context.ElementShape.ProcessedName = _tokenizer.Replace(element.Name, context.GetTokenData());
|
||||
context.ElementShape.ProcessedText = _tokenizer.Replace(element.Text, context.GetTokenData());
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Orchard.DynamicForms.Drivers {
|
||||
_tokenizer = tokenizer;
|
||||
}
|
||||
|
||||
protected override void OnDisplaying(Fieldset element, ElementDisplayContext context) {
|
||||
protected override void OnDisplaying(Fieldset element, ElementDisplayingContext context) {
|
||||
context.ElementShape.ProcessedLegend = _tokenizer.Replace(element.Legend, context.GetTokenData());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Orchard.DynamicForms.Drivers {
|
||||
});
|
||||
}
|
||||
|
||||
protected override void OnDisplaying(Label element, ElementDisplayContext context) {
|
||||
protected override void OnDisplaying(Label element, ElementDisplayingContext context) {
|
||||
context.ElementShape.ProcessedText = _tokenizer.Replace(element.Text, context.GetTokenData());
|
||||
context.ElementShape.ProcessedFor = _tokenizer.Replace(element.For, context.GetTokenData());
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Orchard.DynamicForms.Drivers {
|
||||
});
|
||||
}
|
||||
|
||||
protected override void OnDisplaying(PasswordField element, ElementDisplayContext context) {
|
||||
protected override void OnDisplaying(PasswordField element, ElementDisplayingContext context) {
|
||||
context.ElementShape.ProcessedName = _tokenizer.Replace(element.Name, context.GetTokenData());
|
||||
context.ElementShape.ProcessedLabel = _tokenizer.Replace(element.Label, context.GetTokenData());
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Orchard.DynamicForms.Drivers {
|
||||
});
|
||||
}
|
||||
|
||||
protected override void OnDisplaying(ValidationMessage element, ElementDisplayContext context) {
|
||||
protected override void OnDisplaying(ValidationMessage element, ElementDisplayingContext context) {
|
||||
context.ElementShape.ProcessedFor = _tokenizer.Replace(element.For, context.GetTokenData());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace Orchard.Layouts.Drivers {
|
||||
return Editor(context, editor);
|
||||
}
|
||||
|
||||
protected override void OnDisplaying(Paragraph element, ElementDisplayContext context) {
|
||||
protected override void OnDisplaying(Paragraph element, ElementDisplayingContext context) {
|
||||
context.ElementShape.ProcessedContent = _processor.ProcessContent(element.Content, "html", context.GetTokenData());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using Orchard.Environment.Extensions;
|
||||
using Orchard.Layouts.Services;
|
||||
using Orchard.Tokens;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Orchard.Layouts.Filters {
|
||||
[OrchardFeature("Orchard.Layouts.Tokens")]
|
||||
|
||||
@@ -4,7 +4,7 @@ using Orchard.Layouts.Framework.Display;
|
||||
namespace Orchard.Layouts.Helpers {
|
||||
public static class ElementDisplayContextHelper {
|
||||
|
||||
public static IDictionary<string, object> GetTokenData(this ElementDisplayContext context) {
|
||||
public static IDictionary<string, object> GetTokenData(this ElementDisplayingContext context) {
|
||||
var data = new Dictionary<string, object>();
|
||||
|
||||
if (context.Content != null)
|
||||
|
||||
Reference in New Issue
Block a user