diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/RelationTypes/EditRelationType.aspx b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/RelationTypes/EditRelationType.aspx index 2b8e9e16b0..3eb00d60ad 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/RelationTypes/EditRelationType.aspx +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/RelationTypes/EditRelationType.aspx @@ -10,6 +10,8 @@ table.relations th.directionIcon { width:16px; height:16px; } table.relations td { background: transparent none no-repeat scroll center center } + + table.relations td a { text-decoration: underline; } /* objectType icons */ table.relations td.ContentItemType {} @@ -124,10 +126,10 @@   - <%# DataBinder.Eval(Container.DataItem, "ParentText") %> + " target="_blank"><%# DataBinder.Eval(Container.DataItem, "ParentText") %>     - <%# DataBinder.Eval(Container.DataItem, "ChildText") %> + " target="_blank"><%# DataBinder.Eval(Container.DataItem, "ChildText") %> <%# DataBinder.Eval(Container.DataItem, "DateTime") %> <%# DataBinder.Eval(Container.DataItem, "Comment") %> @@ -144,4 +146,4 @@ - \ No newline at end of file + diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/RelationTypes/EditRelationType.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/RelationTypes/EditRelationType.aspx.cs index b4e72082e1..33366681f5 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/RelationTypes/EditRelationType.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/RelationTypes/EditRelationType.aspx.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Text; using System.Web.UI; using System.Web.UI.WebControls; using umbraco.BasePages; @@ -127,7 +128,7 @@ namespace umbraco.cms.presentation.developer.RelationTypes /// EventArgs (expect empty) protected void Page_Load(object sender, EventArgs e) { - int id; + int id; if (int.TryParse(Request.QueryString["id"], out id)) { var relationService = Services.RelationService; @@ -281,5 +282,25 @@ namespace umbraco.cms.presentation.developer.RelationTypes } } } + + + public string GetEditUrl(string objectTypeName, int id) + { + var path = new StringBuilder(); + path.Append(UmbracoPath.Replace("~", string.Empty)); + + if (objectTypeName == UmbracoObjectTypes.Document.GetFriendlyName()) + path.Append("#/content/content/"); + else if (objectTypeName == UmbracoObjectTypes.Media.GetFriendlyName()) + path.Append("#/media/media/"); + else if (objectTypeName == UmbracoObjectTypes.Member.GetFriendlyName()) + path.Append("#/member/member/"); + else + return string.Empty; + + path.Append("edit/"); + path.Append(id); + return path.ToString(); + } } }