mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
Adding position to some displays/editors - adding a ul/li links-only form of tags display template
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042803
This commit is contained in:
@@ -16,18 +16,18 @@ namespace Orchard.Core.Common.Providers {
|
||||
|
||||
OnGetDisplays<BodyAspect>((context, body) => {
|
||||
var model = new BodyDisplayViewModel { BodyAspect = body };
|
||||
context.Displays.Add(new ModelTemplate(model, TemplatePrefix) { TemplateName = TemplateName });
|
||||
context.Displays.Add(new ModelTemplate(model, TemplatePrefix) { TemplateName = TemplateName, Position = "3" });
|
||||
});
|
||||
|
||||
OnGetEditors<BodyAspect>((context, body) => {
|
||||
var model = new BodyEditorViewModel { BodyAspect = body, TextEditorTemplate = DefaultTextEditorTemplate };
|
||||
context.Editors.Add(new ModelTemplate(model, TemplatePrefix) { TemplateName = TemplateName });
|
||||
context.Editors.Add(new ModelTemplate(model, TemplatePrefix) { TemplateName = TemplateName, Position = "3" });
|
||||
});
|
||||
|
||||
OnUpdateEditors<BodyAspect>((context, body) => {
|
||||
var model = new BodyEditorViewModel { BodyAspect = body, TextEditorTemplate = DefaultTextEditorTemplate };
|
||||
context.Updater.TryUpdateModel(model, TemplatePrefix, null, null);
|
||||
context.Editors.Add(new ModelTemplate(model, TemplatePrefix) { TemplateName = TemplateName });
|
||||
context.Editors.Add(new ModelTemplate(model, TemplatePrefix) { TemplateName = TemplateName, Position = "3" });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user