U4-2233 - Feature Request 6.0 Extra edit links for ease of use.

Created by Jeremy Pyne 14 May 2013, 13:52:47 Updated by Jeremy Pyne 14 May 2013, 14:55:52

A few places that edit links would save developers some time. (These should only show if the user has rights to that section) Document type and Selected template on documents. Media type on media items. From macro to its script file. Technically a script file can be used by more then one macro so the inverse link, script file to macro, would be harder to do, could be a drop-down or something I suppose.

There are other kinds of relationships but these are the most common where the use case would justify them. For example I am often working on contnet items in the editor and then notice that i need to make a change to the template to accommodate my document changes. Currently I have to check the template name, then switch to settings, browse down the tree to find the item. I nice link on the properties pane save us lots of time.

1 Attachments


Jeremy Pyne 14 May 2013, 14:12:57

sample code. (We use this in a UmbracoPage.Load override though it can be built in more directly)

            User currentUser = User.GetCurrent();
            if (currentUser.Applications.SingleOrDefault(app => app.alias == "settings") != null)
                #region Template Link
                // Lookup the pages template and add a link to edit it directly.
                string templateId = doc.Template.ToString();
                var template = cc.SearchControl(typeof(PropertyPanel)).Cast<PropertyPanel>().Single(c => c.Text == "Template");
                LinkButton tempateLink = new LinkButton();
                tempateLink.OnClientClick = "parent.openTemplate(" + templateId + "); return false;";
                tempateLink.Text = "Edit Template";
                tempateLink.Style.Add(HtmlTextWriterStyle.PaddingLeft, "10px");


Priority: Normal

Type: Feature (request)

State: Closed


Difficulty: Easy

Category: UI

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:


Story Points: