Skip to content

Commit 48f08cf

Browse files
Renames module and updates readme
1 parent 26f4682 commit 48f08cf

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,28 @@ Add this part to your project's `composer.json` file
1010
"repositories": [
1111
{
1212
"type": "vcs",
13-
"url": "https://github.com/evanshunt/CMSEditLink"
13+
"url": "https://github.com/evanshunt/FrontEndEditLink"
1414
}
1515
],
1616
```
1717

18-
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`
1919

2020
Add the extension to your site's yml configuration
2121

2222
```yaml
2323

2424
Page:
2525
extensions:
26-
- evanshunt\CMSEditLink\CMSEditLink
26+
- evanshunt\FrontEndEditLink\FrontEndEditLink
2727

2828
```
2929

30-
On `Page.php` controller add `use evanshunt\CMSEditLink;`
30+
On `Page.php` controller add `use evanshunt\FrontEndEditLink;`
3131

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.
3333

3434
Changelog:
3535

36+
- 2020-06-25: renamed module
3637
- 2020-06-22: initial commit

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "evanshunt/CMSEditLink",
33
"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.",
44
"type": "silverstripe-vendormodule",
5-
"homepage": "http://github.com/evanshunt/CMSEditLink",
6-
"keywords": ["silverstripe", "CMS Edit Link"],
5+
"homepage": "http://github.com/evanshunt/FrontEndEditLink",
6+
"keywords": ["silverstripe", "FrontEndEditLink"],
77
"license": "BSD-3-Clause",
88
"authors": [
99
{
@@ -12,15 +12,15 @@
1212
}
1313
],
1414
"support": {
15-
"issues": "http://github.com/evanshunt/CMSEditLink/issues"
15+
"issues": "http://github.com/evanshunt/FrontEndEditLink/issues"
1616
},
1717
"require": {
1818
"silverstripe/framework": "^4",
1919
"silverstripe/cms": "^4"
2020
},
2121
"autoload": {
2222
"psr-4": {
23-
"evanshunt\\CMSEditLink\\": "src/"
23+
"evanshunt\\FrontEndEditLink\\": "src/"
2424
}
2525
}
2626
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace evanshunt\CMSEditLink;
2+
namespace evanshunt\FrontEndEditLink;
33

44
use SilverStripe\ORM\DataExtension;
55
use SilverStripe\ORM\FieldType\DBField;
@@ -9,10 +9,10 @@
99

1010
use SilverStripe\Dev\Debug;
1111

12-
class CMSEditLink extends DataExtension
12+
class FrontEndEditLink extends DataExtension
1313
{
1414

15-
public function EditURL(){
15+
public function EditLink(){
1616

1717
if ($member = Security::getCurrentUser()) {
1818
return DBField::create_field('HTMLFragment',"<a href='admin/pages/edit/show/".$this->owner->ID."/' style='

0 commit comments

Comments
 (0)