lemonmind/pimcore-localized-assets

Pimcore Localized Assets - localize your assets with no duplicating files

1.1.0 2022-10-10 07:01 UTC

This package is auto-updated.

Last update: 2024-05-18 14:14:27 UTC


README

Pimcore Bundle to localize your assets with same file.

Installation

composer require lemonmind/pimcore-localized-assets
bin/console pimcore:bundle:enable PimcoreLocalizedAssetsBundle
bin/console pimcore:bundle:install PimcoreLocalizedAssetsBundle

After installation predefined assets metadata definitions with name "localized_asset_name" should be visible. Each language should has its own entity.

Usage

In specific asset in "Custom Metadata" add predefined metadata from "Localized Assets Bundle" group. Then add values that should be replaced from original name.

So for example if asset has default path /images/tree.jpg on spanish page it will be replaced with /images/bosque.jpg.

It works in documents and data objects also with thumbnails.

Run phpstan and php-cs-fixer

There is prepared a composer script to run both phpstan and php-cs-fixer.

composer fix