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
Then from where you have the `composer.json` file run `composer require evanshunt/CMSEditLink`
18
+
Then from where you have the `composer.json` file run `composer require evanshunt/FrontEndEditLink`
19
19
20
20
Add the extension to your site's yml configuration
21
21
22
22
```yaml
23
23
24
24
Page:
25
25
extensions:
26
-
- evanshunt\CMSEditLink\CMSEditLink
26
+
- evanshunt\FrontEndEditLink\FrontEndEditLink
27
27
28
28
```
29
29
30
-
On `Page.php` controller add `use evanshunt\CMSEditLink;`
30
+
On `Page.php` controller add `use evanshunt\FrontEndEditLink;`
31
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.
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 `$EditLink`. This will render a small link on the page. Right now it's positioned fixed at the bottom left corner of the page.
Copy file name to clipboardExpand all lines: composer.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
"name": "evanshunt/CMSEditLink",
3
3
"description": "A small SilverStripe module that provides logged in users with a front-end `Edit` link. This helps in quickly editing a pages and finding it on the SiteTree instead of hunting for it.",
0 commit comments