Got macro parameter editors inserting macros into the template editor for both webforms and mvc, created unit tests for macro syntax in macroservice. Removed the hard coded span8 for input elements for property editors - need to figure out a different way to set their width.

This commit is contained in:
Shannon
2013-09-20 14:24:39 +10:00
parent 661bc3149f
commit 7396b01466
21 changed files with 326 additions and 72 deletions

View File

@@ -1,9 +1,11 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Core.Models.Mapping;
using Umbraco.Core.PropertyEditors;
using Umbraco.Web.Models.ContentEditing;
namespace Umbraco.Web.Models.Mapping
@@ -24,7 +26,8 @@ namespace Umbraco.Web.Models.Mapping
config.CreateMap<IMacro, IEnumerable<MacroParameter>>()
.ConvertUsing(macro => macro.Properties.Select(Mapper.Map<MacroParameter>).ToList());
config.CreateMap<IMacroProperty, MacroParameter>();
config.CreateMap<IMacroProperty, MacroParameter>()
.ForMember(parameter => parameter.View, expression => expression.ResolveUsing<ParameterEditorViewResolver>());
}