Fixing build

This commit is contained in:
Sebastien Ros
2015-06-30 14:47:22 -07:00
parent e7ceb732b1
commit 7758eb66f2
8 changed files with 8 additions and 7 deletions

View File

@@ -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());
}

View File

@@ -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());
}
}

View File

@@ -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());
}

View File

@@ -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());
}

View File

@@ -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());
}
}

View File

@@ -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());
}
}

View File

@@ -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")]

View File

@@ -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)