定制 level51/silverstripe-image-credits 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

level51/silverstripe-image-credits

Composer 安装命令:

composer require level51/silverstripe-image-credits

包简介

Image credits extension for Silverstripe

关键字:

README 文档

README

Module for SilverStripe 5 adding credits to the image model.

Development / Testing

During development or settings tests, the default caching behaviour is a pain - so you can disable it with a custom config like the following:

---
Name: custom-image-credits
After: level51-image-credits
---
Level51\ImageCredits\ImageExtension:
  force_rebuild: true

Image Credits Page

There is $ImageWithCredits variable globally available in all templates which can be used to render a list of all images with its credits. You can therefore use it in any template, e.g. like this:

<% loop $ImageWithCredits %>
    <div style="display: flex;">
        <div style="flex: none; margin-right: 2rem;">
            $ScaleWidth(200)
        </div>

        <div style="flex: auto;">
            $Credits
        </div>
    </div>
<% end_loop %>

Requirements

  • SilverStripe ^5.0
  • PHP >= 8.0

Maintainer

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固