承接 fromholdio/silverstripe-superlinker 相关项目开发

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

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

fromholdio/silverstripe-superlinker

最新稳定版本:3.1.0

Composer 安装命令:

composer require fromholdio/silverstripe-superlinker

包简介

Superlinker

README 文档

README

Requires Silverstripe 5+

CMS fields testing snippets

// for $has_one relation, testing inline fields
$linkFields = SuperLink::singleton()->getCMSLinkFields('SuperLink' . HasOneEdit::FIELD_SEPARATOR);
$fields->addFieldsToTab('Root.Main', $linkFields->toArray());

// for $has_one relation, testing with edit form
$fields->addFieldsToTab('Root.Main', [
    HasOneMiniGridField::create(
        'SuperLink',
        'SuperLink',
        $this
    )
]);

// for $has_many relation, testing with gridfield
$linksField = MiniGridField::create(
    'SuperLinks',
    'Links',
    $this
)->setLimit(7)->setShowLimitMessage(true);
$fields->addFieldToTab('Root.Main', $linksField);

// for the HasOne/MiniGridFields, currently adding these lines provides nicer UI
$config = $linksField->getGridConfig()?->addComponent(new GridField_ActionMenu());
$linksField->setGridConfig($config);

v3 to-dos

  • Validations for each link type
  • Richer summary fields content
  • Update MiniGridField to use GridField_ActionMenu
  • Remove yml config currently in place for ease of development (convert to yml.example/readme or similar)
  • Modal for adding rather than HasOneMiniGridField
  • Resolve indecision around handling, naming and accessors for Title vs LinkText
  • Broken or empty link reporting
  • Permissions
  • Add awareness of link container objects for orphan reporting/pruning (& potentially expanding config to container/relation)
  • Documentation/readme
  • Formats/themes/styles as optional extensions
  • Cleverer handling of settings/options
  • Apply display logic (and perhaps field sort) via yml config using linktypes x fieldnames (allowing link types to share fields rather than requiring each class to utilise its own fields)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2020-07-19