We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [assets-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
9 views

Feed Me - syncing asset fields

I'm migrating a Craft 2 site to Craft 3 via rebuild. I've copied the assets over to the new site and indexed the upload directory - that all went well. However, after doing this and working on other ...
0
votes
0answers
23 views

Asset Focal Point from Front End

It is possible to set the focal point via the CP, but I am trying to allow non-CP users to edit their images. I have so far been unable to provide a focalPoint parameter while adding an image. Is this ...
0
votes
0answers
13 views

Show asset field value when asset is disabled for the site

I have an asset field type called organisation which points to another entry. That entry can be disabled for the current site, but I want to display it regardless. In Craft 2 the below code worked, ...
1
vote
2answers
26 views

Merging Assets Fields

I've got this working but it seems terribly verbose to do something, that in my opinion should be easier. Is there a better way to get the assets from 2 different fields, merge them and output them ...
1
vote
1answer
54 views

Select Transform Feature with Asset Field

If you insert an image in a Rich Text field you get an option to apply a transform, but that is not true when using an Asset field to choose an image, which seems strange. Is there any way to ...
2
votes
1answer
168 views

How to get second asset?

I have an entry with an asset field that has up to 3 assets in it. If I want to load just the second asset in my template code, what's the syntax for this? (can't find any references/examples)
4
votes
1answer
56 views

Asset dynamic subfolder for User Matrix

I need to set an asset field's dynamic subfolder path to the User ID. The field is within a matrix. The matrix a field in a User profile. Setting it to {currentUser.id}, {owner.author.id}, {object....
1
vote
1answer
89 views

How can I create a new asset source?

Now I have a "gallery image" field which allows users to upload multiple images, and some "single-upload image field" in matrix block. For "single-upload image field", I want to force users to ...
1
vote
2answers
190 views

How to use an asset as featured image in different entries

I have currently the problem, that I can't use the same asset in different entries as featured image. Craft Pro Version: 3.0.9 My setup is the following: Volumes: Local, Base URL: @web/uploads, ...
1
vote
1answer
31 views

Not all assets copied over when copying an entry from admin panel

I have a site with multiple locales. I have some entries that will have some basic fields such as title, description, etc and also an asset field. The asset field is translatable so I could have an ...
1
vote
1answer
484 views

Eager-Loading Assets in Matrix

I've been using this example to eager load images, stored in an Assets field which is located in a Matrix field. My query looks like this: {% set entries = craft.entries.section('project') .with(['...
1
vote
0answers
25 views

Carry over asset field content to other locales

I have a site with English and French locales. One of the fields we have assigned to our entries is an asset field. Currently when an admin adds a new entry, all the English content will carry over ...
1
vote
1answer
290 views

Asset Field: Select a folder instead of all images

Is there a way to pick a folder from an asset field? The goal is to render a dynamic gallery from an asset folder (which is on S3) instead of selecting all images inside a folder by hand. Use case: ...
1
vote
1answer
109 views

How to return asset from custom user field

In Craft 3, one of my 'User' fields is an assets type field with one selectable asset ('profilePicture'). I have routing setup to load my template when a url looks like: domain.com/person/firstname-...
1
vote
1answer
26 views

which Sources of asset field are checked

I have an asset field (craft\fields\Asset), how do I figure out which Sources it can use? (Which of the Sources boxes are checked)? This is for Craft 3, and I'd like to do it in twig (I have the ...