pikselin/silverstripe-admin-edit-link

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

Installs: 1 104

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Language:JavaScript

Type:silverstripe-vendormodule

dev-main 2023-05-04 00:16 UTC

This package is auto-updated.

Last update: 2024-04-04 02:12:38 UTC


README

Use jonom/silverstripe-betternavigator and optionally jonom/silverstripe-environment-awareness for a more complete/user-friendly solution

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