2 votes

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

 Download package
version 1.0.2

NuGet install instructions for Umbraco 7.3.0-7.7.0

Install-Package BackOfficeExtensions

Package owner

Paul Seal

Paul Seal

Paul has 2888 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
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Paul Seal
  • Created: 22/08/2017
  • Current version 1.0.2
  • .NET version 4.5
  • License MIT
  • Downloads on Our: 511
  • Downloads on NuGet: 4.3K
  • Total downloads : 4.8K

External resources