7

Using a eZ Platform / eZ Publish 5.4 for local development without images

 3 years ago
source link: https://www.symfony.fi/ez-platform-tip/ez-platform-ez-publish-5-4-local-development-without-images
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Using a eZ Platform / eZ Publish 5.4 for local development without images

eZ Platform and eZ Publish 5.4 both use the imagine bundle for scaling images. It can be tricky to work in a local environment without images. One way to work without images is to modify the code to always use a single image.

Some steps to get you on the right path:

  • Open the file: vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Imagine/AliasGenerator.php
  • Replace $originalPath at line ~97 with a static reference, e.g: $originalPath = '4/9/6/2/1852694-1-nor-NO/54399_binary_11552.jpg';

Written by Jani Tarvainen on Wednesday March 22, 2017
Permalink -

« Generate link in PHP using eZ Platform API - Checking if user has permission to edit content in eZ Platform using the API »


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK