Skip to content

Add ability to set preview image via AssetFields#132

Open
keichinger wants to merge 8 commits into3.xfrom
preview-image-field
Open

Add ability to set preview image via AssetFields#132
keichinger wants to merge 8 commits into3.xfrom
preview-image-field

Conversation

@keichinger
Copy link
Copy Markdown
Collaborator

No description provided.

@keichinger keichinger added the enhancement New feature or request label Jun 4, 2024
@keichinger keichinger requested a review from apfelbox as a code owner June 4, 2024 06:14
@keichinger keichinger force-pushed the preview-image-field branch from 3e7e6a3 to bd87f15 Compare June 4, 2024 08:11
apfelbox
apfelbox previously approved these changes Jun 5, 2024
@keichinger keichinger force-pushed the preview-image-field branch from d43538b to f3e6bf3 Compare July 30, 2025 09:14

if (null !== $previewField && null !== $previewImageField)
{
break;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It now can't happen that we have two different preview field vs asset preview, right? Is that something that can happen in theory? Or can it only ever be one?

{
if ($this->allowMultiselect)
{
throw new InvalidFieldConfigurationException("The choice field with multiselect can't be used as preview field.");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can't ?

Copy link
Copy Markdown
Member

@apfelbox apfelbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some last questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants