定制 carbon/previewmodebutton 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

carbon/previewmodebutton

最新稳定版本:0.1.1

Composer 安装命令:

composer require carbon/previewmodebutton

包简介

Toggle preview mode with a button in the Neos CMS backend

README 文档

README

Latest stable version Total downloads License GitHub forks GitHub stars GitHub watchers

Carbon.PreviewModeButton

Toggle preview mode with a button in the Neos CMS backend.

Installation

Carbon.PreviewModeButton is available via packagist. Run the following command in your site package

composer require --no-update carbon/previewmodebutton

Then run composer update in your project root.

Configuration

To add a button into the panel add a configuration like this:

Neos:
  Neos:
    Ui:
      frontendConfiguration:
        "Carbon.PreviewMode:Button":
          # If you set a view mode to true, it will fallback to Neos.Neos:Document and will have no custom icon or label
          rawContent: true

          # The name of the preview mode
          teaserView:
            # If a document is this node type or has this supertype, show the button. Otherwise it will be hidden
            # Defaults to 'Neos.Neos:Document'
            nodeTypeName: "Foo.Bar:Mixin.TeaserDocument"
            # Set the icon. Defaults to 'fas fa-pencil'
            icon: "fas fa-images"
            # Add `aria-label` and `title` to the button. Will be translated, but can also be a plain text
            label: "Foo.Bar:Backend.Main:editPreviewModes.teaserView"
            # Sets the position. Defaults to 'start'
            position: "start 1"

统计信息

  • 总下载量: 2.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2024-04-10