定制 dd/evolutioncms-plugins-managermanager-mm_minimizablesections 二次开发

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

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

dd/evolutioncms-plugins-managermanager-mm_minimizablesections

最新稳定版本:1.0.0

Composer 安装命令:

composer require dd/evolutioncms-plugins-managermanager-mm_minimizablesections

包简介

A widget for ManagerManager plugin that allows sections to be minimizable on the document edit page.

README 文档

README

A widget for ManagerManager plugin that allows sections to be minimizable on the document edit page.

Requires

Installation

To install you must unzip the archive to /assets/plungins/managermanager/widgets/mm_minimizablesections/.

You may also read this documentation:

Parameters description

  • $params

    • Desctription: The object of parameters.
    • Valid values:
      • stdClass
      • arrayAssociative
    • Default value: —
  • $params->sections

    • Desctription: The ID(s) of the sections that the widget is applied to.
    • Valid values:
      • '' — all sections
      • stringCommaSeparated
      • array
    • Default value: ''
  • $params->minimizedByDefault

    • Desctription: The ID(s) of the sections that should be minimized by default.
    • Valid values:
      • stringCommaSeparated
      • array
    • Default value: —
  • $params->roles

    • Desctription: The CMS user roles that the widget is applied to.
    • Valid values:
      • array
      • stringCommaSeparated
      • '' — when this parameter is empty then widget is applied to the all roles
    • Default value: ''
  • $params->roles[$i]

    • Desctription: CMS user role ID.
    • Valid values: integer
    • Required
  • $params->templates

    • Desctription: Document templates IDs for which the widget is applied to.
    • Valid values:
      • array
      • stringCommaSeparated
      • '' — empty value means the widget is applying to all templates
    • Default value: ''
  • $params->templates[$i]

    • Desctription: Template ID.
    • Valid values: integer
    • Required

CMS events

  • OnDocFormPrerender
  • OnDocFormRender

Examples

Apply to all sections for all roles and templates

mm_minimizableSections();

Apply to the content and Template Variables sections for users with role 1 editing the documents with the template ID equals 3

mm_minimizableSections([
	'sections' => 'content,tvs',
	'roles' => '1',
	'templates' => '3',
]);

Apply to all sections and set minimized Template variables and photos sections by default

mm_minimizableSections([
	'minimizedByDefault' => 'tvs,photos',
]);

Links

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-06-05