xanweb/c5-foundation 问题修复 & 功能扩展

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

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

xanweb/c5-foundation

最新稳定版本:v2.1.6

Composer 安装命令:

composer require xanweb/c5-foundation

包简介

ConcreteCMS Foundation

README 文档

README

Latest Version on Packagist Software License

Installation

Include library to your composer.json

composer require xanweb/c5-foundation

How to use Image Data Extractor

Data Extractor tries to use both IPTC and EXIF metadata to fill image information.

Register importer processor within application/config/app.php

return [
    /*
     * Importer processors
     */
    'import_processors' => [
        'xw.image.data_extractor' => \Xanweb\C5\Foundation\File\Import\Processor\DataExtractor::class,
    ],
];

You need then to map image information to properties or attributes.

Here is the list of available information keys:

  • image_title: title of the image
  • artist: artist name
  • author_title: author name
  • keywords
  • image_description
  • comments
  • copyright

The default mapping is like follows:

[
    'image_title' => 'title', // mapped to file title property
    'comments' => 'description', // mapped to file description property
    'keywords' => 'tags', // mapped to file tags property
]

To override the default mapping you need to add xanweb.php config file under /application/config.
Here is an example of possible mapping:

<?php

return [
    'file_manager' => [
        'images' => [
            'data_extractor' => [
                'image_title' => ['title', 'ak_alt'], // You can use multiple properties/attributes per field.
                'comments' => 'description',
                'keywords' => 'tags',
                'author_title' => 'ak_author', // Use 'ak_' prefix for attributes.
                'copyright' => 'ak_copyright',
            ]
        ],
    ],
];

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-19