aetchell / silverstripe-admin-edit-link
Adds a link to the edit page in the CMS if you are logged in as administrator
Package info
github.com/ornatipinnis/silverstripe-admin-edit-link
Language:JavaScript
Type:silverstripe-vendormodule
pkg:composer/aetchell/silverstripe-admin-edit-link
0.2
2022-03-31 23:07 UTC
Requires
README
Adds a link to the CMS edit page if logged in user has appropriate permissions. This works by detecting the meta[name="x-cms-edit-link"] header tag. This tiny module has no dependancies other than Silverstripe 4.
Installation
composer require aetchell/silverstripe-admin-edit-link
CSS
The CSS for this is very basic and can be overridden:
.cms-edit-link {
position: absolute;
padding: 0.5rem;
bottom: 15px;
right: 15px;
background-color: #ffffff;
color: #002752;
}