schliesser/credits 问题修复 & 功能扩展

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

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

schliesser/credits

最新稳定版本:v1.0.0

Composer 安装命令:

composer require schliesser/credits

包简介

Give credits: Automatically list all used images with their copyright. Multisite support.

README 文档

README

The Credits extension for TYPO3 provides a content element that lists all images used within the site, provided that copyright information has been properly maintained in the metadata. For each image, the extension also lists the pages on which the image is used.

Features

  • Displays a list of all images with copyright information.
  • Shows the pages where each image is used.
  • Easy integration as a TYPO3 content element.
  • Multisite support: only images used in the same site are displayed.

TYPO3 Frontend: Example image copyright listing

Requirements

  • TYPO3 v12.4 or higher
  • PHP 8.1 or higher
  • TYPO3 core extension: filemetadata (typo3/cms-filemetadata)

Installation

Install via Composer: composer require schliesser/credits

Or via Extension Manager from TER.

Configuration

No configuration needed. Not even a TypoScript to include!

Usage

Add copyrights to file metadata

To ensure the extension works correctly, make sure to maintain the copyright information in the metadata of each image:

  1. Navigate to the Filelist module in the TYPO3 backend.
  2. Select an image file and open the file properties.
  3. Selecte the metadata tab.
  4. Enter the copyright information in the copyright field.
  5. Save the changes.

NOTE: Only images with copyright are listet!

TYPO3 Backend: File properties editing the copyright field

Add the content element

In the TYPO3 backend, go the page where you want to display the image copyright list. Add a new content element and select the "Image Copyright Listing" element from the wizard. You can add a Headline. No further configuration is needed.

Customization

To customize the HTML output, you can override the Fluid templates used by this extension. Copy the template from EXT:credits/Resources/Private/Templates to your site package extension and adjust them as needed.

Register your custom template path in TypoScript:

tt_content.credits_images.20.view.templateRootPaths.100 = EXT:site_package/Resources/Private/Templates/Credits

Contribution

We welcome contributions to improve this extension. Please submit your issues and pull requests on GitHub.

Development setup

  • Clone project and cd into the extension folder
  • Install dependencies for tests: composer install
  • Run tests with: composer run test

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-06-10