Skip to content

Enhancement: Ability to add a default image per collection. #46

Description

@nat-alt

For example, in a blog collection, we often reference {{ feature_image }}.

We currently have a global fallback image, or a specific image set on each entry, but it would be helpful to define a default field for the entire collection.

Can currently achieve with something like this in tjhe layout:

{{ if collection == "blog" }}
  {{ unless alt_seo_social_image }}
    {{ alt_seo_social_image = feature_image }}
  {{ /unless }}
{{ /if }}

But would be good to be able to configure from admin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions