Adding the ability to specify tokenized default values for content fields, fixes #5934

And also fixing build error. *Shame!*
This commit is contained in:
Lombiq
2015-12-19 20:49:13 +01:00
parent 2835a0db29
commit c216480ca0
41 changed files with 269 additions and 50 deletions

View File

@@ -1,9 +1,10 @@
using System.Collections.Generic;
using Orchard.ContentManagement;
using Orchard.ContentManagement;
using Orchard.ContentManagement.MetaData;
using Orchard.ContentManagement.MetaData.Builders;
using Orchard.ContentManagement.MetaData.Models;
using Orchard.ContentManagement.ViewModels;
using System.Collections.Generic;
using System.Globalization;
namespace Orchard.Fields.Settings {
public class InputFieldListModeEvents : ContentDefinitionEditorEventsBase {
@@ -32,6 +33,7 @@ namespace Orchard.Fields.Settings {
builder.WithSetting("InputFieldSettings.Pattern", model.Pattern);
builder.WithSetting("InputFieldSettings.EditorCssClass", model.EditorCssClass);
builder.WithSetting("InputFieldSettings.MaxLength", model.MaxLength.ToString());
builder.WithSetting("InputFieldSettings.DefaultValue", model.DefaultValue);
}
yield return DefinitionTemplate(model);