Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module lets you set default files for different file types in your file fields. When a user adds a file, they can choose from a list of predefined "types" (like "Text" or "Spreadsheet"), and a default template file will be automatically attached for them to start with.

The File Defaults by Type module enhances file field management by allowing administrators to define multiple "types", identified by a label and with a default file assigned.

This module is especially useful when used together with collaborative tools such as Collabora Online. Default "template" files can be defined for each type (e.g "Text", "Spreadsheet") and used as starting point for collaborative editing.

Features

  • Type definition: for each file field, allows to define a series of "types", identified with a label. Each type requires a default file to be attached.
  • Default file widget: presents the user with a dropdown containing the types defined for that field instance. The user can choose one of them and attach it to the field.
  • UI module: file_defaults_by_type_ui enhances the configuration experience through a page where users can set or replace files.

Upcoming development / ideas

  • Add a new widget or modify the default file one so that a user can upload a custom fil, in addition to choosing one of the defaults provided.
  • Allow to rename the default file being attached.

Supporting this Module

European Commission and European Union Institutions, Agencies and Bodies

Activity

Total releases
1
First release
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
1.0.0-alpha4 Pre-release May 23, 2025