aetchell/silverstripe-admin-edit-link

如果以管理员身份登录,此插件将在CMS编辑页面添加一个链接

安装: 598

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

语言:JavaScript

类型:silverstripe-vendormodule

0.2 2022-03-31 23:07 UTC

This package is auto-updated.

Last update: 2024-08-29 06:07:43 UTC


README

如果登录用户具有适当的权限,此插件将在CMS编辑页面添加一个链接。它通过检测meta[name="x-cms-edit-link"]头部标签来实现。这个小巧的模块除了Silverstripe 4没有其他依赖项。

安装

composer require aetchell/silverstripe-admin-edit-link

CSS

此CSS非常基础,可以被覆盖

.cms-edit-link {
    position: absolute;
    padding: 0.5rem;
    bottom: 15px;
    right: 15px;
    background-color: #ffffff;
    color: #002752;
}