You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43Lines changed: 43 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -227,6 +227,49 @@ There are two special Member Groups you can use:
227
227
<div our-member-exclude="*">Everyone except who is authenticated will see this.</div>
228
228
```
229
229
230
+
## `<our-edit-link>`
231
+
This is a tag helper element which renders an edit link on the front end only if the current user is logged into umbraco and has access to the content section.
232
+
233
+
The link will open the current page in the umbraco backoffice. You can override the umbraco url if you are using a different url for the backoffice.
234
+
235
+
### Simple example
236
+
This is the most basic example. The link will render wherever you put it in the HTML.
237
+
238
+
```html
239
+
<our-edit-link>Edit</our-edit-link>
240
+
```
241
+
242
+
It will output a link link this, where 1057 is the id of the current page:
If you add an attribute of `use-default-styles`, it will render the link fixed to the bottom left of the screen with white text and a navy blue background.
[](https://www.youtube.com/watch?v=3fkDs0NwIE8)
0 commit comments