pikselin/silverstripe-admin-edit-link

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

Installs: 1 304

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Language:JavaScript

Type:silverstripe-vendormodule

dev-main 2024-08-25 23:51 UTC

This package is auto-updated.

Last update: 2024-10-26 00:11:34 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 Pikselin/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;
}