garagist/imagedirectory

Returns DataStructure for used images on a Neos CMS website

0.2.6 2023-08-29 12:04 UTC

This package is auto-updated.

Last update: 2024-04-29 13:47:31 UTC


README

Latest stable version GitHub stars GitHub watchers GitHub license GitHub issues GitHub forks

With Garagist.ImageDirectory (based on Flowpack.Neos.AssetUsage) you can create an image directory for all used images and videos on a Neos CMS website.

Installation

Add the package, and the storage as dependency in your site package:

composer require --no-update garagist/imagedirectory flowpack/entity-usage-databasestorage

The run composer update in your project root.

Finally you need to run the command to build the initial usage index:

./flow assetusage:update

Fusion prototypes

This package provides two main Fusion prototypes, which returns a Neos.Fusion:DataStructure with all the needed data.

  • Garagist.ImageDirectory:ByAsset: All used images and videos, sort by asset (One asset can have multiple documents)
  • Garagist.ImageDirectory:ByDocument All used images and videos, sort by document (One document can have multiple asssts)

With this data you can create your own view to output the assets. It is recomended to create a dedicated page and put it next to your imprint, etc.

Node Types

This package provide one mixin: Garagist.ImageDirectory:Mixin.Defaults. This sets the defaults, as the image width, the prefix for the copyright text as well as the value if no copyrightNotice is set on the asset.