承接 nambu-ch/pimcore-relation-select-fields 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

nambu-ch/pimcore-relation-select-fields

最新稳定版本:v3.0.0

Composer 安装命令:

composer require nambu-ch/pimcore-relation-select-fields

包简介

Pimcore 6.x Relation-Fields for DataObjects and Documents

README 文档

README

Dropdowns for relations in documents and dataobjects

Image description

Usage in Documents

Show a selectbox instead of the classic drag'n'drop field to configure relations inside a document.

Relation field for one object.

echo $view->relation_select("my-name", [
    "objectFolder" => 33,
    "recursive" => true,
    "classes" => ["BlogCategory"],
    "types" => ["object", "asset"],
    "displayFieldName" => "Name",
]);

Relation field for multiple objects.

echo $view->relations_select("my-name", [
    "objectFolder" => 34,
    "recursive" => true,
    "classes" => ["BlogCategory"],
    "types" => ["object", "asset"],
]);

Base-Options for all relations.

types: array with allowed types of object, asset, document

Possible options for DataObject relations.

objectFolder: ID or path of a folder
classes: Filter for DataObject Types
displayFieldName: FieldName of the DataObject (e.g. Name)
recursive: Load DataObjects recursive

Possible options for Assets relations.

assetFolder: ID or path of a folder
assetTypes: Filter for types (e.g. folder, image, ...)

Possible options for Document relations.

documentFolder: ID or path of a folder
documentTypes: Filter for types (e.g. page, email, ...)

Usage in DataObjects

Choose one of the new Data-Fields in the Relations Menu and configure them.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 3
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2020-04-28