Hot answers tagged

3

This turned out to be a bug and the fix will be in the next release (current version is 3.5.15.1).


3

This is a general structure to display global images in any template: <img src="{{ globalHandle.globalAssetHandle.one().getUrl }}" alt=""> You have to set your global handle here: And your global asset handle here:


2

This will be possible using a new imageEditorRatios config setting that is coming in Craft 3.5 (due to release in early August 2020): ... 'imageEditorRatios' => [ 'Unconstrained' => 'none', 'Original' => 'original', 'Square' => 1, '16:9' => 1.78, '10:8' => 1.25, '7:5' => 1.4, '4:3' => 1.33, '5:3' => ...


2

By the way, is your Craft CMS version 3.x? If so, using "one" is recommended instead of "first", which is deprecated.


1

So, I found the problem / solution myself: I have 2 file volumes in my Craft installation (documents, images) The asset field I am trying to fill via FeedMe is in its configuration limited to the "images" file volume, but the default location for uploads is (erroneously) configured in the documents share. In this case, FeedMe is determining the ...


1

From investigating, the issue could not be resolved at the time of writing this answer. Even though the EVENT_BEFORE_HANDLE_FILE on the Asset class extends the cancelable event, there was not actually a way to cancel. To answer the question, there is currently no nice way of being able to cancel this event. I raised a ticket to add this feature, you can ...


1

Is the "Assets in this volume have public URLs" turned on?


1

In Craft, assets are always "absolute" paths to the webroot, not relative to the URL (although you can make it like that). So in your example, @AssetPublicPath/images is going to be replaced with https://dev-craft3-f59ef5d673d0.hyperlane.co/uploads/images. If you want something to go into a subfolder, in this case work, you'd need to either specify ...


1

How are the images included in the json-file? Do you need upload the images as well? I assume, that you do have a problem with the image paths? Please describe your workflow and folder structure. Frontend-Side you could always replace some strings via twig. In your case you could replace a path-segment from the json field.


Only top voted, non community-wiki answers of a minimum length are eligible