LocalGov Drupal Docs
Overview
  • Developers
  • Content designers
  • Designers
  • Contributing
  • Credits System
  • Accessibility
  • Governance
Microsites
Main site
GitHub
Overview
  • Developers
  • Content designers
  • Designers
  • Contributing
  • Credits System
  • Accessibility
  • Governance
Microsites
Main site
GitHub
  • For Developers
  • Getting started
    • Drupal requirements
    • Working with Lando
    • Working with DDEV
    • Debugging with Xdebug
    • Working with Gitpod
  • General configuration
    • Content types
    • Custom modules
    • Image styles
    • Media types
      • Document
      • Image
      • Remote video
    • Paragraph types
    • Taxonomies
    • User roles
  • Features
    • Services: Technical
    • Alert banners: Technical
    • News: Technical
    • Directories: Technical
    • Location Geo: Technical
    • Subsites: Technical
    • Workflows: Technical
  • Theme
    • LocalGov Base
    • Regions
    • LocalGov Theme (Deprecated)
    • Skeleton theme (Deprecated)
    • Admin theme (Deprecated)
  • Testing
  • Development workflows
    • Installing and deploying a LocalGov Drupal site
  • Hosting
    • Hosting a LocalGov Drupal site
    • Hosting LocalGov Drupal on Azure
  • Release statuses
    • Release statuses
  • Security
    • Best practice guidance
    • Single Sign-On
  • Quality standards
    • Quality standards: Accessibility
    • Quality standard: Documentation
    • Quality standard: Testing
  • How-tos
    • How to use Gitpod to test modules in the browser

Media types

Full list of Media types.

Contents:

  • Document
    • Display modes
  • Image
    • Display modes
  • Remote video
    • Display modes

Document

Name:
Document

Machine name:
document

Description:
An uploaded file or document, such as a PDF.

Media source:
File

Field mapping

Name:
Name

Fields
Field nameMachine nameField type
Documentfield_media_documentFile

Display modes

Default - Generic file - use description as link text

Image

Name:
Image

Machine name:
image

Description:
Use local images for reusable media.

Media source:
Image

Fields
Field nameMachine nameField type
Imagefield_media_imageImage

Display modes

Display mode nameFormatStyle name
DefaultResponsive image3:2 Image
Event thumbnailImageSquare small
FeaturedImageLocalGov 248x181
Featured largeResponsive imageLocalGov Newsroom featured
Newsroom teaserImageLocalGov Newsroom teaser
Medium 8:7ImageMedium 8:7
Responsive 3x2Responsive image3:2 image
Responsive bannerResponsive imageBanner (28:9)
Scale crop 7:3 largeImageScale crop 7:3 large
SquareResponsive imageSquare

to do - Full content view mode available for media types and used by Localgov call out box http://localgov.lndo.site/admin/structure/paragraphs_type/localgov_call_out_box/display - but doesn't exist

Remote video

Name:
Remote video

Machine name:
remote_video

Description:
A remotely hosted video from YouTube or Vimeo.

Media source:
Remote video

Media source configuration

Thumbnails location:
public://oembed_thumbnails

Allowed providers:

  • YouTube
  • Vimeo
Field mapping

Resource title:
Name

The name of the author/owner:
- Skip field -

Fields
Field nameMachine nameField type
Video URLfield_media_oembed_videoText (plain)

Display modes

Default - Format settings oEmbed content

Help us improve this page!
Last Updated: 10/7/2021, 3:41:33 PM
Prev
Image styles
Next
Paragraph types