teamneusta/pimcore-backend-branding-bundle

Pimcore管理后端的可配置品牌

0.9.1 2024-09-04 15:32 UTC

This package is auto-updated.

Last update: 2024-09-04 15:35:09 UTC


README

此包允许您配置Pimcore管理后端的品牌。

安装

  1. 需要此包

    composer require teamneusta/pimcore-backend-branding-bundle
  2. 启用此包

    将包添加到您的 config/bundles.php

    Neusta\Pimcore\BackendBrandingBundle\NeustaPimcoreBackendBrandingBundle::class => ['all' => true],

配置

neusta_pimcore_backend_branding:
    favicon: <url-of-your-fav-icon>
    signet: # or just: <url-of-your-logo>
        url: <url-of-your-logo>
        size: 70%
        position: center
        color: '#000'
    tab_bar_icon:
        url: <url-of-your-logo>
        size: 40px
    # Configure Pimcore's own branding settings (pimcore_admin.branding)
    login:
        color: '#fff'               # => color_login_screen
        invert_colors: true         # => login_screen_invert_colors
        image: <url-of-your-logo>   # => login_screen_custom_image
    backend:
        color: '#fff'               # => color_admin_interface
        background_color: '#000'    # => color_admin_interface_background

when@dev:
    neusta_pimcore_backend_branding:
        title: ACME Development
        sidebar_color: '#fcc243'

when@test:
    neusta_pimcore_backend_branding:
        title: ACME Testing
        sidebar_color: '#005ea1'

when@prod:
    neusta_pimcore_backend_branding:
        title:
            login: Welcome to ACME!
            backend: '{hostname} :: ACME'
        bezel_color: '#00a13a'

贡献

请随时为任何错误、功能请求或其他想法创建问题。

请在创建大型拉取请求之前创建一个问题。

本地开发

要在本地机器上进行开发,需要供应商依赖项。

bin/composer install

我们使用composer脚本来执行我们的主要质量工具。它们可以通过bin/composer文件执行。

bin/composer cs:fix
bin/composer phpstan
bin/composer tests