Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 985
    • Issues 985
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • Core
  • Issues
  • #2410

Closed
Open
Opened Feb 22, 2021 by Michael McAndrew@michaelmcandrewDeveloper

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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#2410