1 vote

Edit Link

This will give you an edit link which takes you to the umbraco backoffice edit screen for the page you are currently viewing.

NuGet

Install via NuGet:
Install-Package BackOfficeExtensions -Version 1.0.2
Basic Usage

Add a using statement to your master template
@using BackOfficeExtensions
Then put this helper just after the opening body tag in the master template
@Html.UmbracoEditLink(Model.Content)
Optional Parameters

There are optional parameters for you to edit:
  • position: Position of Edit Link
  • linkColour: The colour of the link text
  • editMessage: The text in the link
  • margin: The number of pixels from the edges. This only applies if the outerPosition is set as fixed, which it is by default.
  • zindex: The z-index
  • umbracoEditContentUrl: The umbraco edit content link. If this changes, you can update it.
  • fontSize: The font size of the link, in pixels.
  • outerPosition: The position of the outer div. This allows you to do relative positioning.
  • linkPosition: The position of the link. This allows you to do absolute position inside a relative div.
  • outerClassName: This allows you to target the outer div in your own CSS.
  • linkClassName: This allows you to target the link in your own CSS.

Here is an example with all settings:
@Html.UmbracoEditLink(Model.Content, position: EditLinkPosition.TopLeft, linkColour: "#00aea2", editMessage: "Edit", margin: 10, zindex: 999, umbracoEditContentUrl: "/umbraco#/content/content/edit/", fontSize: 16, outerPosition: "fixed", linkPosition: "absolute", outerClassName: "edit-link-outer", linkClassName: "edit-link-inner")

Screenshots

Package owner

Paul Seal

Paul Seal

Paul has 2087 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.3.x (untested)
8.2.x (untested)
8.1.x (untested)
8.0.x (untested)
7.15.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Paul Seal
  • Created: 22/08/2017
  • Current version 1.0.2
  • .net Version 4.5
  • License MIT
  • Downloads: 436

External resources