garagist / imagedirectory
Returns DataStructure for used images on a Neos CMS website
Installs: 1 458
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:neos-plugin
Requires
- php: ^8.0
- flowpack/neos-asset-usage: ^0.3
- neos/neos: ^7.3 || ^8.0
README
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.