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
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ A small SilverStripe module that provides logged in users with a front-end `Edit
4
4
5
5
## Setup
6
6
7
-
Add this par to your project's `composer.json` file
7
+
Add this part to your project's `composer.json` file
8
8
9
9
```composer
10
10
"repositories": [
@@ -23,11 +23,13 @@ Add the extension to your site's yml configuration
23
23
24
24
Page:
25
25
extensions:
26
-
- CMSEditLink
26
+
- evanshunt\CMSEditLink\CMSEditLink
27
27
28
28
```
29
29
30
-
Then on your `Page.ss` or if you only want to enabel it on specific pages, then only add it to those pages' templates; add `$EditURL()`. This will render a small link on the page. Right now it's positioned fixed at the bottom left corner of the page.
30
+
On `Page.php` controller add `use evanshunt\CMSEditLink;`
31
+
32
+
Then on your `Page.ss` or if you only want to enabel it on specific pages; then only add it to those pages' templates, add `$EditURL`. This will render a small link on the page. Right now it's positioned fixed at the bottom left corner of the page.
0 commit comments