Some changes to related links to make sure peoples front end code will still work
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Deployment.Internal;
|
||||
using System.Dynamic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -54,10 +55,12 @@ namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSeven
|
||||
|
||||
//create the links in the format the new prop editor expects it to be
|
||||
var link = new ExpandoObject() as IDictionary<string, Object>;
|
||||
link.Add("caption", title);
|
||||
link.Add("link", type.Equals("internal") ? null : lnk);
|
||||
link.Add("title", title);
|
||||
link.Add("link", lnk);
|
||||
link.Add("newWindow", newwindow);
|
||||
link.Add("type", type.Equals("internal") ? "internal" : "external");
|
||||
link.Add("internal", type.Equals("internal") ? lnk : null);
|
||||
|
||||
link.Add("edit", false);
|
||||
link.Add("isInternal", type.Equals("internal"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user