Skip to content

<our-edit-link>

Added in v0.4.0

<our-edit-link> renders a link that opens the current page in the Umbraco backoffice. It’s only rendered for someone logged in to the backoffice with access to the Content section; everyone else sees nothing.

<our-edit-link>Edit</our-edit-link>

That renders an <a> to the page’s content item, where the GUID is the page’s key:

<a href="/umbraco/section/content/workspace/document/edit/b0c59e4c-158c-4fd4-9beb-ebe907693f1c">Edit</a>

use-default-styles places the link at the bottom left of the screen, with white text on navy, so it’s always in reach:

<our-edit-link use-default-styles>Edit</our-edit-link>

The link is an ordinary <a>, so other attributes such as target and class are kept:

<our-edit-link target="_blank" class="edit-link">Edit</our-edit-link>
Attribute What it does
content-key Added in v2.0.0 The key (GUID) of the content item to edit. Leave it out for the current page.
use-default-styles Fixes the link to the bottom left of the screen with built-in styles.