Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • CiviCRM Core CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 1k
    • Issues 1k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • DevelopmentDevelopment
  • CiviCRM CoreCiviCRM Core
  • Issues
  • #2410

Image custom field type

Overview

We want to add a custom field type of image that can be used to store images as part of a CiviCRM entity.

In terms of how this might be different to the file field type, I think the main consideration is how these fields would be displayed (resizing, thumbnails, etc.)

Example use-case

  1. Store (one or more) images related to a contact as part of the contact record.
  2. *** feel free to add more***

Current behaviour

At the moment, there is a single core field for a contact image (e.g. a headshot of an indiviual or a company logo). No other images can be added. Images can be added as files but are not displayed as one would expect an image to be displayed.

Proposed behaviour

People should be able to define image fields and upload images to them. The original should be retained and resized images should also be created (e.g. for thumbnails).

(Wireframes, mockups and more thinking required.)

Comments

Some relevant content (previous workarounds, etc.):

  • https://drupal.stackexchange.com/questions/220599/how-to-add-image-field-in-civicrm
  • https://civicrm.stackexchange.com/questions/15900/how-to-add-image-field-in-civicrm
Edited Feb 22, 2021 by Michael McAndrew
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking