heimrichhannot / contao-media-library-bundle
Project bundle
Installs: 302
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^7.2 || ^8.0
- codefog/tags-bundle: ^3.2
- contao/core-bundle: ^4.9
- heimrichhannot-contao-components/alertifyjs: 1.11.2
- heimrichhannot/contao-categories-bundle: ^1.1
- heimrichhannot/contao-utils-bundle: ^2.220
- symfony/config: ^4.4 || ^5.4
- symfony/event-dispatcher-contracts: ^1.0 || ^2.0 || ^3.0
- symfony/translation-contracts: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- contao/manager-plugin: ^2.0
- contao/test-case: ^1.1
- friendsofphp/php-cs-fixer: ^2.2
- php-coveralls/php-coveralls: ^2.0
- php-http/guzzle6-adapter: ^1.1
- php-http/message-factory: ^1.0.2
- phpunit/phpunit: >=6.0 <6.5
- symfony/phpunit-bridge: ^3.2
- dev-master
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-beta23
- 1.0.0-beta22
- 1.0.0-beta21
- 1.0.0-beta20
- 1.0.0-beta19
- 1.0.0-beta18
- 1.0.0-beta17
- 1.0.0-beta16
- 1.0.0-beta15
- 1.0.0-beta14
- 1.0.0-beta13
- 1.0.0-beta12
- 1.0.0-beta11
- 1.0.0-beta10
- 1.0.0-beta9
- 1.0.0-beta8
- 1.0.0-beta7
- 1.0.0-beta6
- 1.0.0-beta5
- 1.0.0-beta4
- 1.0.0-beta3
- 1.0.0-beta2
- 1.0.0-beta
- 0.11.0
- 0.10.1
- 0.10.0
- 0.9.x-dev
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.1
- 0.1.0
- dev-feature/enhance_copyright
- dev-beta15
This package is auto-updated.
Last update: 2023-01-20 09:04:23 UTC
README
This bundle offers the archive based handling of media library products of different type and their download items. The download items can be generated automatically.
Features
- organize your media (images, videos, ...) as products in archives if a fully fledged shop system would be too much
- predefined media library content types
image
,video
,file
- in case of image products, images sizes for the creation of downloads according to the downloads can be specified
- manually add download items for products
- configurable dca field palettes for products
- add additional fields differently for each product archive
- optional:
codefog/tags-bundle
integration for tagging products (activate in product archive) - optional:
heimrichhannot/contao-categories-bundle
integration for categorizing products (activate in product archive)
Usage
Install
Install via composer
composer require heimrichhannot/contao-media-library-bundle
Update database
Setup
- Create a media library archive and set configurations for its content.
- Create a product in the archive. Download items will be automatically generated on submit if not permitted manually.
- Optional: manually add download items
Configuration
huh_media_library: # If true, the filenames of the generated product downloads will be sanitized. sanitize_download_filenames: false
Installation with frontend assets using webpack
If you want to add the frontend assets (JS & CSS) to your project using webpack, please
add foxy/foxy to the depndencies of your project's composer.json
and add the following to its config
section:
"foxy": { "manager": "yarn", "manager-version": "^1.5.0" }
Using this, foxy will automatically add the needed yarn packages to your project's node_modules
folder.
If you want to specify which frontend assets to use on a per page level, you can use heimrichhannot/contao-encore-bundle.