aetchell/silverstripe-admin-edit-link

Adds a link to the edit page in the CMS if you are logged in as administrator

Installs: 585

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:silverstripe-vendormodule

0.2 2022-03-31 23:07 UTC

This package is auto-updated.

Last update: 2024-03-29 04:46:29 UTC


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;
}