dd/evolutioncms-plugins-managermanager-mm_requirefields 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

dd/evolutioncms-plugins-managermanager-mm_requirefields

最新稳定版本:1.2.6

Composer 安装命令:

composer require dd/evolutioncms-plugins-managermanager-mm_requirefields

包简介

A widget for ManagerManager plugin that allows document fields (or TVs) to become required.

README 文档

README

A widget for ManagerManager plugin that allows document fields (or TVs) to become required. The widget appends a red asterisk to a field to indicate it is required, and alerts users if they save the document without completing all required fields.

Requires

Installation

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

You may also read this documentation:

Parameters description

  • $params

    • Desctription: Parameters, the pass-by-name style is used.
    • Valid values:
      • stdClass
      • arrayAssociative
    • Required
  • $params->fields

    • Desctription: The name(s) of the document fields (or TVs) that are required.
    • Valid values:
      • stringCommaSeparated
      • array
    • Required
  • $params->fields[$i]

    • Desctription: The name of the document field or TV.
    • Valid values: string
    • Required
  • $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

  • OnDocFormRender

Examples

Make the page title and publication date fields required for all docs and users

mm_requireFields([
	'fields' => 'pagetitle,pub_date'
]);

Links

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-04-27