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
+21-28Lines changed: 21 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -230,52 +230,45 @@ There are two special Member Groups you can use:
230
230
## `<our-edit-link>`
231
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
232
233
-
The edit link will open the current page in the umbraco backoffice. You can override the link text and the umbraco url if you are using a different url for the backoffice.
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
234
235
235
### Simple example
236
-
This is the most basic example. You need to pass in the id of the content item using the `content-id` attribute. The link will render wherever you put it in the HTML.
236
+
This is the most basic example. The link will render wherever you put it in the HTML.
237
237
238
-
```cshtml
239
-
<our-edit-link content-id="@(Model.Id)" />
238
+
```html
239
+
<our-edit-link>Edit</our-edit-link>
240
240
```
241
241
242
-
### Use Default Styles example
243
-
244
-
If you set `use-default-styles` to `true`, it will render the link fixed to the bottom left of the screen with white text and a navy blue background.
242
+
It will output a link link this, where 1057 is the id of the current page:
If you have a multilingual site you could use a dictionary value:
250
+
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