digicomp/asset-attributes 问题修复 & 功能扩展

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

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

digicomp/asset-attributes

最新稳定版本:1.0.1

Composer 安装命令:

composer require digicomp/asset-attributes

包简介

Attributes for media assets

README 文档

README

Build status

This package allows you to extend Neos Media assets with custom attributes.

This extension overwrites the original edit template of neos/media-browser - that way you get all of your custom properties and matching form fields in the classic asset editor.

You can add new attributes, by adding them to your Settings.yaml:

DigiComp:
  AssetAttributes:
    customAssetProperties:
      author:
        type: 'textarea' # or empty for textfields
        position: 'end'

Each asset instance will get an "attributes" property introduced, you can work with in PHP or DQL.

Examples:

  • Working with Asset instances:

      $assetObject->getAttributes()->set($key, new AssetAttribute($key, $value));
    
  • querying with DQL:

      SELECT att FROM Neos\Media\Domain\Model\Asset a JOIN a.attributes att 
    
  • working with query objects:

      $query = new \Neos\Flow\Persistence\Doctrine\Query(\Neos\Media\Domain\Model\Asset::class);
      $query->setOrderings(['attributes.value' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING]);
    

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固